Fix implicit-return in xiaomi_miio (#122939)

This commit is contained in:
epenet 2024-07-31 20:45:48 +02:00 committed by GitHub
parent dde97a02f0
commit a6aae4e857
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -190,7 +190,8 @@ async def async_setup_entry(
elif model in MODELS_HUMIDIFIER_MJJSQ:
sensors = HUMIDIFIER_MJJSQ_BINARY_SENSORS
elif model in MODELS_VACUUM:
return _setup_vacuum_sensors(hass, config_entry, async_add_entities)
_setup_vacuum_sensors(hass, config_entry, async_add_entities)
return
for description in BINARY_SENSOR_TYPES:
if description.key not in sensors: