diff --git a/custom_components/bang_olufsen/number.py b/custom_components/bang_olufsen/number.py index 3acb611..282be59 100644 --- a/custom_components/bang_olufsen/number.py +++ b/custom_components/bang_olufsen/number.py @@ -88,7 +88,7 @@ async def async_added_to_hass(self) -> None: async def _update_sound_settings(self, data: SoundSettings) -> None: """Update sound settings.""" - if data.adjustments and data.adjustments.treble: + if data.adjustments and data.adjustments.treble is not None: self._attr_native_value = data.adjustments.treble self.async_write_ha_state() @@ -133,6 +133,6 @@ async def async_added_to_hass(self) -> None: async def _update_sound_settings(self, data: SoundSettings) -> None: """Update sound settings.""" - if data.adjustments and data.adjustments.bass: + if data.adjustments and data.adjustments.bass is not None: self._attr_native_value = data.adjustments.bass self.async_write_ha_state()