Skip to content

Commit

Permalink
fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilp committed Mar 1, 2024
1 parent 9dedf90 commit 70c6c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/deltadore_tydom/ha_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ async def async_turn_off(self, **kwargs):
await self._device.turn_off()

@property
def brightness(self) -> Optional[int]:
def brightness(self) -> int | None:
"""Return the current brightness."""
return value_to_brightness(self.BRIGHTNESS_SCALE, self._device.brightness)

Expand Down

0 comments on commit 70c6c74

Please sign in to comment.