Fix implicit Optional [a-n] (#76720)

This commit is contained in:
Marc Mueller 2022-08-13 18:46:34 +02:00 committed by GitHub
parent cf7c716bda
commit 5a046ae7be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 21 additions and 16 deletions

View file

@ -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