mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
Disable thermobeacon voltage sensors by default (#107326)
This commit is contained in:
parent
4e62dacc00
commit
c86d1b03fc
@ -76,6 +76,8 @@ SENSOR_DESCRIPTIONS = {
|
||||
device_class=SensorDeviceClass.VOLTAGE,
|
||||
native_unit_of_measurement=UnitOfElectricPotential.VOLT,
|
||||
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
|
||||
inject_bluetooth_service_info(hass, THERMOBEACON_SERVICE_INFO)
|
||||
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_attrs = humid_sensor.attributes
|
||||
|
Loading…
x
Reference in New Issue
Block a user