Clean up some bad line wrapping in Hydrawise (#117671)
Fix some bad line wrapping
This commit is contained in:
parent
a904557bbb
commit
034197375c
2 changed files with 7 additions and 5 deletions
|
@ -48,8 +48,10 @@ ZONE_BINARY_SENSORS: tuple[HydrawiseBinarySensorEntityDescription, ...] = (
|
||||||
key="is_watering",
|
key="is_watering",
|
||||||
translation_key="watering",
|
translation_key="watering",
|
||||||
device_class=BinarySensorDeviceClass.RUNNING,
|
device_class=BinarySensorDeviceClass.RUNNING,
|
||||||
value_fn=lambda watering_sensor: watering_sensor.zone.scheduled_runs.current_run
|
value_fn=(
|
||||||
is not None,
|
lambda watering_sensor: watering_sensor.zone.scheduled_runs.current_run
|
||||||
|
is not None
|
||||||
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -39,9 +39,9 @@ class HydrawiseEntity(CoordinatorEntity[HydrawiseDataUpdateCoordinator]):
|
||||||
self._attr_device_info = DeviceInfo(
|
self._attr_device_info = DeviceInfo(
|
||||||
identifiers={(DOMAIN, self._device_id)},
|
identifiers={(DOMAIN, self._device_id)},
|
||||||
name=self.zone.name if zone_id is not None else controller.name,
|
name=self.zone.name if zone_id is not None else controller.name,
|
||||||
model="Zone"
|
model=(
|
||||||
if zone_id is not None
|
"Zone" if zone_id is not None else controller.hardware.model.description
|
||||||
else controller.hardware.model.description,
|
),
|
||||||
manufacturer=MANUFACTURER,
|
manufacturer=MANUFACTURER,
|
||||||
)
|
)
|
||||||
if zone_id is not None or sensor_id is not None:
|
if zone_id is not None or sensor_id is not None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue