Enable Ruff RUF013 (#115333)

This commit is contained in:
Sid 2024-04-10 08:55:59 +02:00 committed by GitHub
parent 7e1a5b19c4
commit 3efee10b95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 65 additions and 58 deletions

View file

@ -101,7 +101,7 @@ async def async_turn_off(hass: HomeAssistant, entity_id=ENTITY_MATCH_ALL) -> Non
async def async_set_mode(
hass: HomeAssistant, entity_id=ENTITY_MATCH_ALL, mode: str = None
hass: HomeAssistant, entity_id=ENTITY_MATCH_ALL, mode: str | None = None
) -> None:
"""Set mode for all or specified humidifier."""
data = {
@ -114,7 +114,7 @@ async def async_set_mode(
async def async_set_humidity(
hass: HomeAssistant, entity_id=ENTITY_MATCH_ALL, humidity: int = None
hass: HomeAssistant, entity_id=ENTITY_MATCH_ALL, humidity: int | None = None
) -> None:
"""Set target humidity for all or specified humidifier."""
data = {