Fix implicit Optional [a-n] (#76720)
This commit is contained in:
parent
cf7c716bda
commit
5a046ae7be
11 changed files with 21 additions and 16 deletions
|
@ -216,7 +216,7 @@ class ControllerDevice(ClimateEntity):
|
|||
return self._available
|
||||
|
||||
@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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue