Fix implicit Optional [a-n] (#76720)
This commit is contained in:
parent
cf7c716bda
commit
5a046ae7be
11 changed files with 21 additions and 16 deletions
|
@ -152,7 +152,7 @@ class ControllerEntity(ClimateEntity):
|
|||
)
|
||||
|
||||
@callback
|
||||
def set_available(self, available: bool, ex: Exception = None) -> None:
|
||||
def set_available(self, available: bool, ex: Exception | None = None) -> None:
|
||||
"""Set availability for the controller."""
|
||||
if self._attr_available == available:
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue