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",
|
||||
translation_key="watering",
|
||||
device_class=BinarySensorDeviceClass.RUNNING,
|
||||
value_fn=lambda watering_sensor: watering_sensor.zone.scheduled_runs.current_run
|
||||
is not None,
|
||||
value_fn=(
|
||||
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(
|
||||
identifiers={(DOMAIN, self._device_id)},
|
||||
name=self.zone.name if zone_id is not None else controller.name,
|
||||
model="Zone"
|
||||
if zone_id is not None
|
||||
else controller.hardware.model.description,
|
||||
model=(
|
||||
"Zone" if zone_id is not None else controller.hardware.model.description
|
||||
),
|
||||
manufacturer=MANUFACTURER,
|
||||
)
|
||||
if zone_id is not None or sensor_id is not None:
|
||||
|
|
Loading…
Add table
Reference in a new issue