Add iaqualink binary sensor and unique_id (#26616)
* Add binary_platform to iaqualink integration, add unique_id * Revert Mixin changes, move self.dev to AqualinkEntity * Style fixes
This commit is contained in:
1 parent
bca7363a80
commit
a71cd6e90e
7 files changed
+74
-31
No files matched your search
@@ -2,8 +2,6 @@
|
||||
import logging
|
||||
from typing import Optional
|
||||
|
||||
from iaqualink import AqualinkSensor
|
||||
|
||||
from homeassistant.components.sensor import DOMAIN
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import DEVICE_CLASS_TEMPERATURE, TEMP_CELSIUS, TEMP_FAHRENHEIT
|
||||
@@ -30,10 +28,6 @@ async def async_setup_entry(
|
||||
class HassAqualinkSensor(AqualinkEntity):
|
||||
"""Representation of a sensor."""
|
||||
|
||||
def __init__(self, dev: AqualinkSensor):
|
||||
"""Initialize the sensor."""
|
||||
self.dev = dev
|
||||
|
||||
@property
|
||||
def name(self) -> str:
|
||||
"""Return the name of the sensor."""
|
||||
|
||||
Reference in new issue
Block a user