diff --git a/homeassistant/components/mopeka/sensor.py b/homeassistant/components/mopeka/sensor.py index 26965cd9a14..f4dba535b75 100644 --- a/homeassistant/components/mopeka/sensor.py +++ b/homeassistant/components/mopeka/sensor.py @@ -76,10 +76,12 @@ SENSOR_DESCRIPTIONS = { "accelerometer_x": SensorEntityDescription( key="accelerometer_x", entity_category=EntityCategory.DIAGNOSTIC, + entity_registry_enabled_default=False, ), "accelerometer_y": SensorEntityDescription( key="accelerometer_y", entity_category=EntityCategory.DIAGNOSTIC, + entity_registry_enabled_default=False, ), } diff --git a/tests/components/mopeka/test_sensor.py b/tests/components/mopeka/test_sensor.py index 27704ec38ed..04761ffc8d2 100644 --- a/tests/components/mopeka/test_sensor.py +++ b/tests/components/mopeka/test_sensor.py @@ -31,7 +31,7 @@ async def test_sensors_bad_signal(hass): assert len(hass.states.async_all("sensor")) == 0 inject_bluetooth_service_info(hass, PRO_SERVICE_INFO) await hass.async_block_till_done() - assert len(hass.states.async_all("sensor")) == 6 + assert len(hass.states.async_all("sensor")) == 4 temp_sensor = hass.states.get("sensor.pro_plus_eeff_temperature") temp_sensor_attrs = temp_sensor.attributes @@ -65,7 +65,7 @@ async def test_sensors_good_signal(hass): assert len(hass.states.async_all("sensor")) == 0 inject_bluetooth_service_info(hass, PRO_GOOD_SIGNAL_SERVICE_INFO) await hass.async_block_till_done() - assert len(hass.states.async_all("sensor")) == 6 + assert len(hass.states.async_all("sensor")) == 4 temp_sensor = hass.states.get("sensor.pro_plus_eeff_temperature") temp_sensor_attrs = temp_sensor.attributes