There was an error while loading. Please reload this page.
1 parent 75a53a5 commit e035c70Copy full SHA for e035c70
1 file changed
custom_components/petlibro/config_flow.py
@@ -229,7 +229,7 @@ async def async_step_account_settings(
229
for unit_type in self.hub.unit_sensor_unique_ids:
230
unit = (input if isinstance(input := update_setting.get(unit_type), Unit)
231
else Unit(input) if input else getattr(self.member, unit_type, None))
232
- if (not unit or not unit.device_class) and not update_all_units:
+ if (unit_type not in update_setting or not unit or not unit.device_class) and not update_all_units:
233
continue
234
_LOGGER.debug("Updating %s sensor entities", unit_type)
235
if update_all_units and unit_type == API.FEED_UNIT:
0 commit comments