Skip to content

Commit

Permalink
fix: Fix typing info for sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed Apr 19, 2021
1 parent 3eac96c commit e560461
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions custom_components/weenect/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Binary_sensor platform for weenect."""
import logging
from typing import Dict, List
from typing import Any, Dict, List

from homeassistant.components.binary_sensor import BinarySensorEntity
from homeassistant.core import callback
Expand Down Expand Up @@ -50,7 +50,7 @@ def __init__(
self,
coordinator: DataUpdateCoordinator,
tracker_id: str,
sensor_type: Dict[str],
sensor_type: Dict[str, Any],
):
super().__init__(coordinator, tracker_id)
self._device_class = sensor_type["device_class"]
Expand Down
4 changes: 2 additions & 2 deletions custom_components/weenect/sensor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Sensor platform for weenect."""
import logging
from typing import Dict, List
from typing import Any, Dict, List

from homeassistant.core import callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
Expand Down Expand Up @@ -47,7 +47,7 @@ def __init__(
self,
coordinator: DataUpdateCoordinator,
tracker_id: str,
sensor_type: Dict[str],
sensor_type: Dict[str, Any],
):
super().__init__(coordinator, tracker_id)
self._device_class = sensor_type["device_class"]
Expand Down

0 comments on commit e560461

Please sign in to comment.