Fix implicit-return in shelly (#122926)

This commit is contained in:
epenet 2024-07-31 14:54:52 +02:00 committed by GitHub
parent 2f181cbe41
commit 5e1cca1c58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,8 @@ async def async_setup_entry(
) -> None: ) -> None:
"""Set up climate device.""" """Set up climate device."""
if get_device_entry_gen(config_entry) in RPC_GENERATIONS: if get_device_entry_gen(config_entry) in RPC_GENERATIONS:
return async_setup_rpc_entry(hass, config_entry, async_add_entities) async_setup_rpc_entry(hass, config_entry, async_add_entities)
return
coordinator = config_entry.runtime_data.block coordinator = config_entry.runtime_data.block
assert coordinator assert coordinator