Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
vinteo committed Jul 4, 2020
1 parent 723811a commit fd42603
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/opensprinkler/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ def _create_entities(hass: HomeAssistant, entry: dict):
ControllerSensorActive(entry, name, "sensor_2", controller, coordinator)
)
entities.append(
ControllerSensorActive(
entry, name, "rain_delay", controller, coordinator
)
ControllerSensorActive(entry, name, "rain_delay", controller, coordinator)
)

for _, program in controller.programs.items():
Expand Down Expand Up @@ -98,7 +96,9 @@ def device_state_attributes(self):
controller = self._controller
attributes = {}
try:
attributes[self._sensor + "_enabled"] = getattr(controller, self._sensor + "_enabled")
attributes[self._sensor + "_enabled"] = getattr(
controller, self._sensor + "_enabled"
)
except:
pass

Expand Down

0 comments on commit fd42603

Please sign in to comment.