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

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