Disable thermobeacon voltage sensors by default (#107326)
This commit is contained in:
parent
4e62dacc00
commit
c86d1b03fc
2 changed files with 3 additions and 1 deletions
|
@ -76,6 +76,8 @@ SENSOR_DESCRIPTIONS = {
|
||||||
device_class=SensorDeviceClass.VOLTAGE,
|
device_class=SensorDeviceClass.VOLTAGE,
|
||||||
native_unit_of_measurement=UnitOfElectricPotential.VOLT,
|
native_unit_of_measurement=UnitOfElectricPotential.VOLT,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
|
entity_registry_enabled_default=False,
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ async def test_sensors(hass: HomeAssistant) -> None:
|
||||||
assert len(hass.states.async_all("sensor")) == 0
|
assert len(hass.states.async_all("sensor")) == 0
|
||||||
inject_bluetooth_service_info(hass, THERMOBEACON_SERVICE_INFO)
|
inject_bluetooth_service_info(hass, THERMOBEACON_SERVICE_INFO)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
assert len(hass.states.async_all("sensor")) == 4
|
assert len(hass.states.async_all("sensor")) == 3
|
||||||
|
|
||||||
humid_sensor = hass.states.get("sensor.lanyard_mini_hygrometer_eeff_humidity")
|
humid_sensor = hass.states.get("sensor.lanyard_mini_hygrometer_eeff_humidity")
|
||||||
humid_sensor_attrs = humid_sensor.attributes
|
humid_sensor_attrs = humid_sensor.attributes
|
||||||
|
|
Loading…
Add table
Reference in a new issue