diff --git a/homeassistant/components/smarttub/sensor.py b/homeassistant/components/smarttub/sensor.py index 54921596fb2..4619d07dbe0 100644 --- a/homeassistant/components/smarttub/sensor.py +++ b/homeassistant/components/smarttub/sensor.py @@ -27,6 +27,7 @@ async def async_setup_entry(hass, entry, async_add_entities): controller.coordinator, spa, "Flow Switch", "flow_switch" ), SmartTubSensor(controller.coordinator, spa, "Ozone", "ozone"), + SmartTubSensor(controller.coordinator, spa, "UV", "uv"), SmartTubSensor( controller.coordinator, spa, "Blowout Cycle", "blowout_cycle" ), diff --git a/tests/components/smarttub/test_sensor.py b/tests/components/smarttub/test_sensor.py index 7ef3062894a..5b0163daf26 100644 --- a/tests/components/smarttub/test_sensor.py +++ b/tests/components/smarttub/test_sensor.py @@ -27,6 +27,11 @@ async def test_sensors(spa, setup_entry, hass): assert state is not None assert state.state == "off" + entity_id = f"sensor.{spa.brand}_{spa.model}_uv" + state = hass.states.get(entity_id) + assert state is not None + assert state.state == "off" + entity_id = f"sensor.{spa.brand}_{spa.model}_blowout_cycle" state = hass.states.get(entity_id) assert state is not None