Skip to content

Commit

Permalink
Update binary_sensor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
disforw authored Aug 28, 2023
1 parent d9ff15c commit d501c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/eyeonwater/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
DataUpdateCoordinator,
)

from .const import DATA_COORDINATOR, DATA_SMART_METER, DOMAIN
from .const import DATA_COORDINATOR, DATA_SMART_METER, DOMAIN, WATER_METER_NAME


@dataclass
Expand Down Expand Up @@ -101,7 +101,7 @@ def __init__(
self._attr_is_on = self._state
self._attr_device_info = DeviceInfo(
identifiers={(DOMAIN, self.meter.meter_uuid)},
name=f"Water Meter {self.meter.meter_id}",
name=f"{WATER_METER_NAME} {self.meter.meter_id}",
)

def get_flag(self) -> bool:
Expand Down

0 comments on commit d501c41

Please sign in to comment.