1
0
mirror of https://github.com/home-assistant/core.git synced 2026-07-06 22:36:33 +01:00

Migrate base entity attributes to StrEnum (#174633)

This commit is contained in:
epenet
2026-06-24 16:38:49 +02:00
committed by GitHub
parent 5fdab795e8
commit 0c4bc95bdd
1197 changed files with 36728 additions and 36716 deletions
+20
View File
@@ -455,6 +455,26 @@ ATTR_TEMPERATURE: Final = "temperature"
ATTR_PERSONS: Final = "persons"
class EntityCapabilityAttribute(StrEnum):
"""Capability attributes shared by all entities."""
GROUP_ENTITIES = "group_entities"
class EntityStateAttribute(StrEnum):
"""State attributes shared by all entities."""
ASSUMED_STATE = "assumed_state"
ATTRIBUTION = "attribution"
DEVICE_CLASS = "device_class"
ENTITY_PICTURE = "entity_picture"
FRIENDLY_NAME = "friendly_name"
ICON = "icon"
RESTORED = "restored"
SUPPORTED_FEATURES = "supported_features"
UNIT_OF_MEASUREMENT = "unit_of_measurement"
# #### UNITS OF MEASUREMENT ####
# Apparent power units
class UnitOfApparentPower(StrEnum):
+16 -21
View File
@@ -30,21 +30,14 @@ from propcache.api import cached_property
import voluptuous as vol
from homeassistant.const import (
ATTR_ASSUMED_STATE,
ATTR_ATTRIBUTION,
ATTR_DEVICE_CLASS,
ATTR_ENTITY_PICTURE,
ATTR_FRIENDLY_NAME,
ATTR_GROUP_ENTITIES,
ATTR_ICON,
ATTR_SUPPORTED_FEATURES,
ATTR_UNIT_OF_MEASUREMENT,
DEVICE_DEFAULT_NAME,
STATE_OFF,
STATE_ON,
STATE_UNAVAILABLE,
STATE_UNKNOWN,
EntityCapabilityAttribute,
EntityCategory,
EntityStateAttribute,
)
from homeassistant.core import (
CALLBACK_TYPE,
@@ -167,7 +160,7 @@ def get_device_class(hass: HomeAssistant, entity_id: str) -> str | None:
First try the statemachine, then entity registry.
"""
if state := hass.states.get(entity_id):
return state.attributes.get(ATTR_DEVICE_CLASS)
return state.attributes.get(EntityStateAttribute.DEVICE_CLASS)
entity_registry = er.async_get(hass)
if not (entry := entity_registry.async_get(entity_id)):
@@ -192,7 +185,7 @@ def get_supported_features(hass: HomeAssistant, entity_id: str) -> int:
First try the statemachine, then entity registry.
"""
if state := hass.states.get(entity_id):
return state.attributes.get(ATTR_SUPPORTED_FEATURES, 0) # type: ignore[no-any-return]
return state.attributes.get(EntityStateAttribute.SUPPORTED_FEATURES, 0) # type: ignore[no-any-return]
entity_registry = er.async_get(hass)
if not (entry := entity_registry.async_get(entity_id)):
@@ -207,7 +200,7 @@ def get_unit_of_measurement(hass: HomeAssistant, entity_id: str) -> str | None:
First try the statemachine, then entity registry.
"""
if state := hass.states.get(entity_id):
return state.attributes.get(ATTR_UNIT_OF_MEASUREMENT)
return state.attributes.get(EntityStateAttribute.UNIT_OF_MEASUREMENT)
entity_registry = er.async_get(hass)
if not (entry := entity_registry.async_get(entity_id)):
@@ -1116,7 +1109,9 @@ class Entity(
capability_attr = self.capability_attributes
if self.__group is not None:
capability_attr = capability_attr.copy() if capability_attr else {}
capability_attr[ATTR_GROUP_ENTITIES] = self.__group.member_entity_ids.copy()
capability_attr[EntityCapabilityAttribute.GROUP_ENTITIES] = (
self.__group.member_entity_ids.copy()
)
attr = capability_attr.copy() if capability_attr else {}
@@ -1129,25 +1124,25 @@ class Entity(
attr |= extra_state_attributes
if (unit_of_measurement := self.unit_of_measurement) is not None:
attr[ATTR_UNIT_OF_MEASUREMENT] = unit_of_measurement
attr[EntityStateAttribute.UNIT_OF_MEASUREMENT] = unit_of_measurement
if assumed_state := self.assumed_state:
attr[ATTR_ASSUMED_STATE] = assumed_state
attr[EntityStateAttribute.ASSUMED_STATE] = assumed_state
if (attribution := self.attribution) is not None:
attr[ATTR_ATTRIBUTION] = attribution
attr[EntityStateAttribute.ATTRIBUTION] = attribution
original_device_class = self.device_class
if (
device_class := (entry and entry.device_class) or original_device_class
) is not None:
attr[ATTR_DEVICE_CLASS] = str(device_class)
attr[EntityStateAttribute.DEVICE_CLASS] = str(device_class)
if (entity_picture := self.entity_picture) is not None:
attr[ATTR_ENTITY_PICTURE] = entity_picture
attr[EntityStateAttribute.ENTITY_PICTURE] = entity_picture
if (icon := (entry and entry.icon) or self.icon) is not None:
attr[ATTR_ICON] = icon
attr[EntityStateAttribute.ICON] = icon
original_name = self.name
if original_name is UNDEFINED:
@@ -1169,10 +1164,10 @@ class Entity(
self._cached_friendly_name = (original_name, name)
if name:
attr[ATTR_FRIENDLY_NAME] = name
attr[EntityStateAttribute.FRIENDLY_NAME] = name
if (supported_features := self.supported_features) is not None:
attr[ATTR_SUPPORTED_FEATURES] = supported_features
attr[EntityStateAttribute.SUPPORTED_FEATURES] = supported_features
return (
state,
+11 -14
View File
@@ -20,18 +20,13 @@ import attr
import voluptuous as vol
from homeassistant.const import (
ATTR_DEVICE_CLASS,
ATTR_FRIENDLY_NAME,
ATTR_ICON,
ATTR_RESTORED,
ATTR_SUPPORTED_FEATURES,
ATTR_UNIT_OF_MEASUREMENT,
EVENT_HOMEASSISTANT_START,
EVENT_HOMEASSISTANT_STOP,
MAX_LENGTH_STATE_DOMAIN,
MAX_LENGTH_STATE_ENTITY_ID,
STATE_UNAVAILABLE,
EntityCategory,
EntityStateAttribute,
Platform,
)
from homeassistant.core import (
@@ -429,28 +424,28 @@ class RegistryEntry:
@callback
def write_unavailable_state(self, hass: HomeAssistant) -> None:
"""Write the unavailable state to the state machine."""
attrs: dict[str, Any] = {ATTR_RESTORED: True}
attrs: dict[str, Any] = {EntityStateAttribute.RESTORED: True}
if self.capabilities is not None:
attrs.update(self.capabilities)
device_class = self.device_class or self.original_device_class
if device_class is not None:
attrs[ATTR_DEVICE_CLASS] = device_class
attrs[EntityStateAttribute.DEVICE_CLASS] = device_class
icon = self.icon or self.original_icon
if icon is not None:
attrs[ATTR_ICON] = icon
attrs[EntityStateAttribute.ICON] = icon
name = async_get_full_entity_name(hass, self)
if name:
attrs[ATTR_FRIENDLY_NAME] = name
attrs[EntityStateAttribute.FRIENDLY_NAME] = name
if self.supported_features is not None:
attrs[ATTR_SUPPORTED_FEATURES] = self.supported_features
attrs[EntityStateAttribute.SUPPORTED_FEATURES] = self.supported_features
if self.unit_of_measurement is not None:
attrs[ATTR_UNIT_OF_MEASUREMENT] = self.unit_of_measurement
attrs[EntityStateAttribute.UNIT_OF_MEASUREMENT] = self.unit_of_measurement
hass.states.async_set(self.entity_id, STATE_UNAVAILABLE, attrs)
@@ -2455,7 +2450,9 @@ def _async_setup_entity_restore(hass: HomeAssistant, registry: EntityRegistry) -
if event.data["action"] == "update":
old_entity_id = event.data["old_entity_id"]
old_state = hass.states.get(old_entity_id)
if old_state is None or not old_state.attributes.get(ATTR_RESTORED):
if old_state is None or not old_state.attributes.get(
EntityStateAttribute.RESTORED
):
return
hass.states.async_remove(old_entity_id, context=event.context)
if entry := registry.async_get(event.data["entity_id"]):
@@ -2464,7 +2461,7 @@ def _async_setup_entity_restore(hass: HomeAssistant, registry: EntityRegistry) -
state = hass.states.get(event.data["entity_id"])
if state is None or not state.attributes.get(ATTR_RESTORED):
if state is None or not state.attributes.get(EntityStateAttribute.RESTORED):
return
hass.states.async_remove(event.data["entity_id"], context=event.context)
@@ -39,8 +39,8 @@
# name: test_binary_sensors[binary_sensor.kitchen_lunar_ddeeff_timer_running-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'running',
'friendly_name': 'LUNAR-DDEEFF Timer running',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'running',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'LUNAR-DDEEFF Timer running',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.kitchen_lunar_ddeeff_timer_running',
@@ -39,7 +39,7 @@
# name: test_buttons[button.kitchen_lunar_ddeeff_reset_timer-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'LUNAR-DDEEFF Reset timer',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'LUNAR-DDEEFF Reset timer',
}),
'context': <ANY>,
'entity_id': 'button.kitchen_lunar_ddeeff_reset_timer',
@@ -89,7 +89,7 @@
# name: test_buttons[button.kitchen_lunar_ddeeff_start_stop_timer-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'LUNAR-DDEEFF Start/stop timer',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'LUNAR-DDEEFF Start/stop timer',
}),
'context': <ANY>,
'entity_id': 'button.kitchen_lunar_ddeeff_start_stop_timer',
@@ -139,7 +139,7 @@
# name: test_buttons[button.kitchen_lunar_ddeeff_tare-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'LUNAR-DDEEFF Tare',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'LUNAR-DDEEFF Tare',
}),
'context': <ANY>,
'entity_id': 'button.kitchen_lunar_ddeeff_tare',
@@ -41,10 +41,10 @@
# name: test_sensors[sensor.kitchen_lunar_ddeeff_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'battery',
'friendly_name': 'LUNAR-DDEEFF Battery',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'battery',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'LUNAR-DDEEFF Battery',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.kitchen_lunar_ddeeff_battery',
@@ -99,10 +99,10 @@
# name: test_sensors[sensor.kitchen_lunar_ddeeff_volume_flow_rate-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'volume_flow_rate',
'friendly_name': 'LUNAR-DDEEFF Volume flow rate',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'volume_flow_rate',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'LUNAR-DDEEFF Volume flow rate',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfVolumeFlowRate.MILLILITERS_PER_SECOND: 'mL/s'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfVolumeFlowRate.MILLILITERS_PER_SECOND: 'mL/s'>,
}),
'context': <ANY>,
'entity_id': 'sensor.kitchen_lunar_ddeeff_volume_flow_rate',
@@ -157,10 +157,10 @@
# name: test_sensors[sensor.kitchen_lunar_ddeeff_weight-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'weight',
'friendly_name': 'LUNAR-DDEEFF Weight',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'weight',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'LUNAR-DDEEFF Weight',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfMass.OUNCES: 'oz'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfMass.OUNCES: 'oz'>,
}),
'context': <ANY>,
'entity_id': 'sensor.kitchen_lunar_ddeeff_weight',
File diff suppressed because it is too large Load Diff
@@ -457,15 +457,15 @@
StateSnapshot({
'attributes': ReadOnlyDict({
<WeatherEntityStateAttribute.APPARENT_TEMPERATURE: 'apparent_temperature'>: 22.8,
'attribution': 'Data provided by AccuWeather',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by AccuWeather',
<WeatherEntityStateAttribute.CLOUD_COVERAGE: 'cloud_coverage'>: 10,
<WeatherEntityStateAttribute.DEW_POINT: 'dew_point'>: 16.2,
'friendly_name': 'Home',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Home',
<WeatherEntityStateAttribute.HUMIDITY: 'humidity'>: 67,
<WeatherEntityStateAttribute.PRECIPITATION_UNIT: 'precipitation_unit'>: <UnitOfPrecipitationDepth.MILLIMETERS: 'mm'>,
<WeatherEntityStateAttribute.PRESSURE: 'pressure'>: 1012.0,
<WeatherEntityStateAttribute.PRESSURE_UNIT: 'pressure_unit'>: <UnitOfPressure.HPA: 'hPa'>,
'supported_features': <WeatherEntityFeature: 3>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <WeatherEntityFeature: 3>,
<WeatherEntityStateAttribute.TEMPERATURE: 'temperature'>: 22.6,
<WeatherEntityStateAttribute.TEMPERATURE_UNIT: 'temperature_unit'>: <UnitOfTemperature.CELSIUS: '°C'>,
<WeatherEntityStateAttribute.UV_INDEX: 'uv_index'>: 6,
@@ -51,7 +51,7 @@
'attributes': ReadOnlyDict({
<ClimateEntityStateAttribute.CURRENT_HUMIDITY: 'current_humidity'>: 50.0,
<ClimateEntityStateAttribute.CURRENT_TEMPERATURE: 'current_temperature'>: 22.0,
'friendly_name': 'Living Room',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room',
<ClimateEntityCapabilityAttribute.HVAC_MODES: 'hvac_modes'>: list([
<HVACMode.COOL: 'cool'>,
<HVACMode.HEAT: 'heat'>,
@@ -61,7 +61,7 @@
]),
<ClimateEntityCapabilityAttribute.MAX_TEMP: 'max_temp'>: 30,
<ClimateEntityCapabilityAttribute.MIN_TEMP: 'min_temp'>: 16,
'supported_features': <ClimateEntityFeature: 385>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <ClimateEntityFeature: 385>,
<ClimateEntityStateAttribute.TEMPERATURE: 'temperature'>: 24.0,
}),
'context': <ANY>,
@@ -137,7 +137,7 @@
'medium',
'high',
]),
'friendly_name': 'Test System',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test System',
<ClimateEntityCapabilityAttribute.HVAC_MODES: 'hvac_modes'>: list([
<HVACMode.COOL: 'cool'>,
<HVACMode.HEAT: 'heat'>,
@@ -147,7 +147,7 @@
]),
<ClimateEntityCapabilityAttribute.MAX_TEMP: 'max_temp'>: 30.0,
<ClimateEntityCapabilityAttribute.MIN_TEMP: 'min_temp'>: 16.0,
'supported_features': <ClimateEntityFeature: 393>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <ClimateEntityFeature: 393>,
<ClimateEntityStateAttribute.TEMPERATURE: 'temperature'>: 24.0,
}),
'context': <ANY>,
@@ -39,7 +39,7 @@
# name: test_switch_entities[switch.test_system_away_mode-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Test System Away mode',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test System Away mode',
}),
'context': <ANY>,
'entity_id': 'switch.test_system_away_mode',
@@ -89,7 +89,7 @@
# name: test_switch_entities[switch.test_system_continuous_fan-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Test System Continuous fan',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test System Continuous fan',
}),
'context': <ANY>,
'entity_id': 'switch.test_system_continuous_fan',
@@ -139,7 +139,7 @@
# name: test_switch_entities[switch.test_system_quiet_mode-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Test System Quiet mode',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test System Quiet mode',
}),
'context': <ANY>,
'entity_id': 'switch.test_system_quiet_mode',
@@ -189,7 +189,7 @@
# name: test_switch_entities[switch.test_system_turbo_mode-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Test System Turbo mode',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test System Turbo mode',
}),
'context': <ANY>,
'entity_id': 'switch.test_system_turbo_mode',
@@ -47,10 +47,10 @@
# name: test_fallback_to_get_rooms[sensor.room_1_energy-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Room 1 Energy',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Room 1 Energy',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.room_1_energy',
@@ -105,10 +105,10 @@
# name: test_fallback_to_get_rooms[sensor.room_1_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Room 1 Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Room 1 Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.room_1_temperature',
@@ -166,10 +166,10 @@
# name: test_multiple_devices_create_individual_sensors[sensor.room_1_energy-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Room 1 Energy',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Room 1 Energy',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.room_1_energy',
@@ -224,10 +224,10 @@
# name: test_multiple_devices_create_individual_sensors[sensor.room_1_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Room 1 Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Room 1 Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.room_1_temperature',
@@ -285,10 +285,10 @@
# name: test_multiple_devices_create_individual_sensors[sensor.room_2_energy-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Room 2 Energy',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Room 2 Energy',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.room_2_energy',
@@ -343,10 +343,10 @@
# name: test_multiple_devices_create_individual_sensors[sensor.room_2_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Room 2 Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Room 2 Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.room_2_temperature',
@@ -404,10 +404,10 @@
# name: test_sensor_cloud[sensor.room_1_energy-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Room 1 Energy',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Room 1 Energy',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.room_1_energy',
@@ -462,10 +462,10 @@
# name: test_sensor_cloud[sensor.room_1_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Room 1 Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Room 1 Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.room_1_temperature',
@@ -39,8 +39,8 @@
# name: test_sensors[sensor.adguard_home_average_processing_speed-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AdGuard Home Average processing speed',
'unit_of_measurement': <UnitOfTime.MILLISECONDS: 'ms'>,
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AdGuard Home Average processing speed',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTime.MILLISECONDS: 'ms'>,
}),
'context': <ANY>,
'entity_id': 'sensor.adguard_home_average_processing_speed',
@@ -90,8 +90,8 @@
# name: test_sensors[sensor.adguard_home_dns_queries-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AdGuard Home DNS queries',
'unit_of_measurement': 'queries',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AdGuard Home DNS queries',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'queries',
}),
'context': <ANY>,
'entity_id': 'sensor.adguard_home_dns_queries',
@@ -141,8 +141,8 @@
# name: test_sensors[sensor.adguard_home_dns_queries_blocked-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AdGuard Home DNS queries blocked',
'unit_of_measurement': 'queries',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AdGuard Home DNS queries blocked',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'queries',
}),
'context': <ANY>,
'entity_id': 'sensor.adguard_home_dns_queries_blocked',
@@ -192,8 +192,8 @@
# name: test_sensors[sensor.adguard_home_dns_queries_blocked_ratio-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AdGuard Home DNS queries blocked ratio',
'unit_of_measurement': '%',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AdGuard Home DNS queries blocked ratio',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.adguard_home_dns_queries_blocked_ratio',
@@ -243,8 +243,8 @@
# name: test_sensors[sensor.adguard_home_parental_control_blocked-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AdGuard Home Parental control blocked',
'unit_of_measurement': 'requests',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AdGuard Home Parental control blocked',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'requests',
}),
'context': <ANY>,
'entity_id': 'sensor.adguard_home_parental_control_blocked',
@@ -294,8 +294,8 @@
# name: test_sensors[sensor.adguard_home_rules_count-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AdGuard Home Rules count',
'unit_of_measurement': 'rules',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AdGuard Home Rules count',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'rules',
}),
'context': <ANY>,
'entity_id': 'sensor.adguard_home_rules_count',
@@ -345,8 +345,8 @@
# name: test_sensors[sensor.adguard_home_safe_browsing_blocked-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AdGuard Home Safe browsing blocked',
'unit_of_measurement': 'requests',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AdGuard Home Safe browsing blocked',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'requests',
}),
'context': <ANY>,
'entity_id': 'sensor.adguard_home_safe_browsing_blocked',
@@ -396,8 +396,8 @@
# name: test_sensors[sensor.adguard_home_safe_searches_enforced-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AdGuard Home Safe searches enforced',
'unit_of_measurement': 'requests',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AdGuard Home Safe searches enforced',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'requests',
}),
'context': <ANY>,
'entity_id': 'sensor.adguard_home_safe_searches_enforced',
@@ -39,7 +39,7 @@
# name: test_switch[switch.adguard_home_filtering-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AdGuard Home Filtering',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AdGuard Home Filtering',
}),
'context': <ANY>,
'entity_id': 'switch.adguard_home_filtering',
@@ -89,7 +89,7 @@
# name: test_switch[switch.adguard_home_parental_control-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AdGuard Home Parental control',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AdGuard Home Parental control',
}),
'context': <ANY>,
'entity_id': 'switch.adguard_home_parental_control',
@@ -139,7 +139,7 @@
# name: test_switch[switch.adguard_home_protection-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AdGuard Home Protection',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AdGuard Home Protection',
}),
'context': <ANY>,
'entity_id': 'switch.adguard_home_protection',
@@ -189,7 +189,7 @@
# name: test_switch[switch.adguard_home_query_log-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AdGuard Home Query log',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AdGuard Home Query log',
}),
'context': <ANY>,
'entity_id': 'switch.adguard_home_query_log',
@@ -239,7 +239,7 @@
# name: test_switch[switch.adguard_home_safe_browsing-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AdGuard Home Safe browsing',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AdGuard Home Safe browsing',
}),
'context': <ANY>,
'entity_id': 'switch.adguard_home_safe_browsing',
@@ -289,7 +289,7 @@
# name: test_switch[switch.adguard_home_safe_search-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AdGuard Home Safe search',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AdGuard Home Safe search',
}),
'context': <ANY>,
'entity_id': 'switch.adguard_home_safe_search',
@@ -41,15 +41,15 @@
'attributes': ReadOnlyDict({
<UpdateEntityStateAttribute.AUTO_UPDATE: 'auto_update'>: False,
<UpdateEntityStateAttribute.DISPLAY_PRECISION: 'display_precision'>: 0,
'entity_picture': '/api/brands/integration/adguard/icon.png',
'friendly_name': 'AdGuard Home',
<EntityStateAttribute.ENTITY_PICTURE: 'entity_picture'>: '/api/brands/integration/adguard/icon.png',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AdGuard Home',
<UpdateEntityStateAttribute.IN_PROGRESS: 'in_progress'>: False,
<UpdateEntityStateAttribute.INSTALLED_VERSION: 'installed_version'>: 'v0.107.50',
<UpdateEntityStateAttribute.LATEST_VERSION: 'latest_version'>: 'v0.107.59',
<UpdateEntityStateAttribute.RELEASE_SUMMARY: 'release_summary'>: 'AdGuard Home v0.107.59 is now available!',
<UpdateEntityStateAttribute.RELEASE_URL: 'release_url'>: 'https://github.com/AdguardTeam/AdGuardHome/releases/tag/v0.107.59',
<UpdateEntityStateAttribute.SKIPPED_VERSION: 'skipped_version'>: None,
'supported_features': <UpdateEntityFeature: 1>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <UpdateEntityFeature: 1>,
<UpdateEntityStateAttribute.TITLE: 'title'>: None,
<UpdateEntityStateAttribute.UPDATE_PERCENTAGE: 'update_percentage'>: None,
}),
@@ -29,7 +29,7 @@
'high',
'auto',
]),
'friendly_name': 'myauto',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'myauto',
<ClimateEntityStateAttribute.HVAC_ACTION: 'hvac_action'>: <HVACAction.COOLING: 'cooling'>,
<ClimateEntityCapabilityAttribute.HVAC_MODES: 'hvac_modes'>: list([
<HVACMode.OFF: 'off'>,
@@ -47,7 +47,7 @@
'MyTemp',
'MyAuto',
]),
'supported_features': <ClimateEntityFeature: 410>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <ClimateEntityFeature: 410>,
<ClimateEntityStateAttribute.TARGET_TEMP_HIGH: 'target_temp_high'>: 24,
<ClimateEntityStateAttribute.TARGET_TEMP_LOW: 'target_temp_low'>: 20,
<ClimateEntityCapabilityAttribute.TARGET_TEMP_STEP: 'target_temp_step'>: 1,
@@ -20,9 +20,9 @@
# name: test_cover_async_setup_entry[switch.myzone_myfan]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'switch',
'friendly_name': 'myzone MyFan',
'icon': 'mdi:fan-auto',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'switch',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'myzone MyFan',
<EntityStateAttribute.ICON: 'icon'>: 'mdi:fan-auto',
}),
'context': <ANY>,
'entity_id': 'switch.myzone_myfan',
@@ -49,7 +49,7 @@
<LightEntityStateAttribute.BRIGHTNESS: 'brightness'>: 255,
<LightEntityStateAttribute.COLOR_MODE: 'color_mode'>: <ColorMode.RGBW: 'rgbw'>,
<LightEntityStateAttribute.COLOR_TEMP_KELVIN: 'color_temp_kelvin'>: None,
'friendly_name': 'Test Light',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Light',
<LightEntityStateAttribute.HS_COLOR: 'hs_color'>: tuple(
0.0,
0.0,
@@ -71,7 +71,7 @@
<ColorMode.COLOR_TEMP: 'color_temp'>,
<ColorMode.RGBW: 'rgbw'>,
]),
'supported_features': <LightEntityFeature: 0>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <LightEntityFeature: 0>,
<LightEntityStateAttribute.XY_COLOR: 'xy_color'>: tuple(
0.323,
0.329,
@@ -39,7 +39,7 @@
# name: test_all_entities[indoor][button.airgradient_calibrate_co2_sensor-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient Calibrate CO2 sensor',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Calibrate CO2 sensor',
}),
'context': <ANY>,
'entity_id': 'button.airgradient_calibrate_co2_sensor',
@@ -89,7 +89,7 @@
# name: test_all_entities[indoor][button.airgradient_test_led_bar-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient Test LED bar',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Test LED bar',
}),
'context': <ANY>,
'entity_id': 'button.airgradient_test_led_bar',
@@ -139,7 +139,7 @@
# name: test_all_entities[outdoor][button.airgradient_calibrate_co2_sensor-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient Calibrate CO2 sensor',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Calibrate CO2 sensor',
}),
'context': <ANY>,
'entity_id': 'button.airgradient_calibrate_co2_sensor',
@@ -44,12 +44,12 @@
# name: test_all_entities[number.airgradient_display_brightness-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient Display brightness',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Display brightness',
<NumberEntityCapabilityAttribute.MAX: 'max'>: 100,
<NumberEntityCapabilityAttribute.MIN: 'min'>: 0,
<NumberEntityCapabilityAttribute.MODE: 'mode'>: <NumberMode.AUTO: 'auto'>,
<NumberEntityCapabilityAttribute.STEP: 'step'>: 1,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'number.airgradient_display_brightness',
@@ -104,12 +104,12 @@
# name: test_all_entities[number.airgradient_led_bar_brightness-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient LED bar brightness',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient LED bar brightness',
<NumberEntityCapabilityAttribute.MAX: 'max'>: 100,
<NumberEntityCapabilityAttribute.MIN: 'min'>: 0,
<NumberEntityCapabilityAttribute.MODE: 'mode'>: <NumberMode.AUTO: 'auto'>,
<NumberEntityCapabilityAttribute.STEP: 'step'>: 1,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'number.airgradient_led_bar_brightness',
@@ -48,7 +48,7 @@
# name: test_all_entities[indoor][select.airgradient_co2_automatic_baseline_duration-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient CO2 automatic baseline duration',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient CO2 automatic baseline duration',
<SelectEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'1',
'8',
@@ -111,7 +111,7 @@
# name: test_all_entities[indoor][select.airgradient_configuration_source-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient Configuration source',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Configuration source',
<SelectEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'cloud',
'local',
@@ -170,7 +170,7 @@
# name: test_all_entities[indoor][select.airgradient_display_pm_standard-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient Display PM standard',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Display PM standard',
<SelectEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'ugm3',
'us_aqi',
@@ -229,7 +229,7 @@
# name: test_all_entities[indoor][select.airgradient_display_temperature_unit-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient Display temperature unit',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Display temperature unit',
<SelectEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'c',
'f',
@@ -289,7 +289,7 @@
# name: test_all_entities[indoor][select.airgradient_led_bar_mode-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient LED bar mode',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient LED bar mode',
<SelectEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'off',
'co2',
@@ -352,7 +352,7 @@
# name: test_all_entities[indoor][select.airgradient_nox_index_learning_offset-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient NOx index learning offset',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient NOx index learning offset',
<SelectEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'12',
'60',
@@ -417,7 +417,7 @@
# name: test_all_entities[indoor][select.airgradient_voc_index_learning_offset-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient VOC index learning offset',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient VOC index learning offset',
<SelectEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'12',
'60',
@@ -483,7 +483,7 @@
# name: test_all_entities[outdoor][select.airgradient_co2_automatic_baseline_duration-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient CO2 automatic baseline duration',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient CO2 automatic baseline duration',
<SelectEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'1',
'8',
@@ -546,7 +546,7 @@
# name: test_all_entities[outdoor][select.airgradient_configuration_source-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient Configuration source',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Configuration source',
<SelectEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'cloud',
'local',
@@ -608,7 +608,7 @@
# name: test_all_entities[outdoor][select.airgradient_nox_index_learning_offset-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient NOx index learning offset',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient NOx index learning offset',
<SelectEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'12',
'60',
@@ -673,7 +673,7 @@
# name: test_all_entities[outdoor][select.airgradient_voc_index_learning_offset-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient VOC index learning offset',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient VOC index learning offset',
<SelectEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'12',
'60',
@@ -41,10 +41,10 @@
# name: test_all_entities[indoor][sensor.airgradient_carbon_dioxide-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'carbon_dioxide',
'friendly_name': 'Airgradient Carbon dioxide',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'carbon_dioxide',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Carbon dioxide',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppm',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppm',
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_carbon_dioxide',
@@ -97,9 +97,9 @@
# name: test_all_entities[indoor][sensor.airgradient_carbon_dioxide_automatic_baseline_calibration-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'duration',
'friendly_name': 'Airgradient Carbon dioxide automatic baseline calibration',
'unit_of_measurement': <UnitOfTime.DAYS: 'd'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'duration',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Carbon dioxide automatic baseline calibration',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTime.DAYS: 'd'>,
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_carbon_dioxide_automatic_baseline_calibration',
@@ -149,8 +149,8 @@
# name: test_all_entities[indoor][sensor.airgradient_display_brightness-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient Display brightness',
'unit_of_measurement': '%',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Display brightness',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_display_brightness',
@@ -205,8 +205,8 @@
# name: test_all_entities[indoor][sensor.airgradient_display_pm_standard-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'Airgradient Display PM standard',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Display PM standard',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'ugm3',
'us_aqi',
@@ -265,8 +265,8 @@
# name: test_all_entities[indoor][sensor.airgradient_display_temperature_unit-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'Airgradient Display temperature unit',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Display temperature unit',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'c',
'f',
@@ -322,10 +322,10 @@
# name: test_all_entities[indoor][sensor.airgradient_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'humidity',
'friendly_name': 'Airgradient Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_humidity',
@@ -375,8 +375,8 @@
# name: test_all_entities[indoor][sensor.airgradient_led_bar_brightness-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient LED bar brightness',
'unit_of_measurement': '%',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient LED bar brightness',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_led_bar_brightness',
@@ -432,8 +432,8 @@
# name: test_all_entities[indoor][sensor.airgradient_led_bar_mode-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'Airgradient LED bar mode',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient LED bar mode',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'off',
'co2',
@@ -490,7 +490,7 @@
# name: test_all_entities[indoor][sensor.airgradient_nox_index-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient NOx index',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient NOx index',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
}),
'context': <ANY>,
@@ -544,9 +544,9 @@
# name: test_all_entities[indoor][sensor.airgradient_nox_index_learning_offset-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'duration',
'friendly_name': 'Airgradient NOx index learning offset',
'unit_of_measurement': <UnitOfTime.DAYS: 'd'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'duration',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient NOx index learning offset',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTime.DAYS: 'd'>,
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_nox_index_learning_offset',
@@ -598,9 +598,9 @@
# name: test_all_entities[indoor][sensor.airgradient_pm0_3-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient PM0.3',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient PM0.3',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'particles/dL',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'particles/dL',
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_pm0_3',
@@ -652,10 +652,10 @@
# name: test_all_entities[indoor][sensor.airgradient_pm1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'pm1',
'friendly_name': 'Airgradient PM1',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm1',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient PM1',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_pm1',
@@ -707,10 +707,10 @@
# name: test_all_entities[indoor][sensor.airgradient_pm10-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'pm10',
'friendly_name': 'Airgradient PM10',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm10',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient PM10',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_pm10',
@@ -762,10 +762,10 @@
# name: test_all_entities[indoor][sensor.airgradient_pm2_5-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'pm25',
'friendly_name': 'Airgradient PM2.5',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm25',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient PM2.5',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_pm2_5',
@@ -817,9 +817,9 @@
# name: test_all_entities[indoor][sensor.airgradient_raw_nox-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient Raw NOx',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Raw NOx',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ticks',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ticks',
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_raw_nox',
@@ -871,10 +871,10 @@
# name: test_all_entities[indoor][sensor.airgradient_raw_pm2_5-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'pm25',
'friendly_name': 'Airgradient Raw PM2.5',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm25',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Raw PM2.5',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_raw_pm2_5',
@@ -926,9 +926,9 @@
# name: test_all_entities[indoor][sensor.airgradient_raw_voc-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient Raw VOC',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Raw VOC',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ticks',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ticks',
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_raw_voc',
@@ -980,10 +980,10 @@
# name: test_all_entities[indoor][sensor.airgradient_signal_strength-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'signal_strength',
'friendly_name': 'Airgradient Signal strength',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'signal_strength',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Signal strength',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'dBm',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'dBm',
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_signal_strength',
@@ -1038,10 +1038,10 @@
# name: test_all_entities[indoor][sensor.airgradient_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Airgradient Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_temperature',
@@ -1093,7 +1093,7 @@
# name: test_all_entities[indoor][sensor.airgradient_voc_index-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient VOC index',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient VOC index',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
}),
'context': <ANY>,
@@ -1147,9 +1147,9 @@
# name: test_all_entities[indoor][sensor.airgradient_voc_index_learning_offset-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'duration',
'friendly_name': 'Airgradient VOC index learning offset',
'unit_of_measurement': <UnitOfTime.DAYS: 'd'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'duration',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient VOC index learning offset',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTime.DAYS: 'd'>,
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_voc_index_learning_offset',
@@ -1202,9 +1202,9 @@
# name: test_all_entities[outdoor][sensor.airgradient_carbon_dioxide_automatic_baseline_calibration-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'duration',
'friendly_name': 'Airgradient Carbon dioxide automatic baseline calibration',
'unit_of_measurement': <UnitOfTime.DAYS: 'd'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'duration',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Carbon dioxide automatic baseline calibration',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTime.DAYS: 'd'>,
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_carbon_dioxide_automatic_baseline_calibration',
@@ -1256,7 +1256,7 @@
# name: test_all_entities[outdoor][sensor.airgradient_nox_index-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient NOx index',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient NOx index',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
}),
'context': <ANY>,
@@ -1310,9 +1310,9 @@
# name: test_all_entities[outdoor][sensor.airgradient_nox_index_learning_offset-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'duration',
'friendly_name': 'Airgradient NOx index learning offset',
'unit_of_measurement': <UnitOfTime.DAYS: 'd'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'duration',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient NOx index learning offset',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTime.DAYS: 'd'>,
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_nox_index_learning_offset',
@@ -1364,9 +1364,9 @@
# name: test_all_entities[outdoor][sensor.airgradient_raw_nox-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient Raw NOx',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Raw NOx',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ticks',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ticks',
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_raw_nox',
@@ -1418,9 +1418,9 @@
# name: test_all_entities[outdoor][sensor.airgradient_raw_voc-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient Raw VOC',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Raw VOC',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ticks',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ticks',
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_raw_voc',
@@ -1472,10 +1472,10 @@
# name: test_all_entities[outdoor][sensor.airgradient_signal_strength-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'signal_strength',
'friendly_name': 'Airgradient Signal strength',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'signal_strength',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Signal strength',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'dBm',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'dBm',
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_signal_strength',
@@ -1527,7 +1527,7 @@
# name: test_all_entities[outdoor][sensor.airgradient_voc_index-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient VOC index',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient VOC index',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
}),
'context': <ANY>,
@@ -1581,9 +1581,9 @@
# name: test_all_entities[outdoor][sensor.airgradient_voc_index_learning_offset-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'duration',
'friendly_name': 'Airgradient VOC index learning offset',
'unit_of_measurement': <UnitOfTime.DAYS: 'd'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'duration',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient VOC index learning offset',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTime.DAYS: 'd'>,
}),
'context': <ANY>,
'entity_id': 'sensor.airgradient_voc_index_learning_offset',
@@ -39,7 +39,7 @@
# name: test_all_entities[switch.airgradient_post_data_to_airgradient-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Airgradient Post data to Airgradient',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Post data to Airgradient',
}),
'context': <ANY>,
'entity_id': 'switch.airgradient_post_data_to_airgradient',
@@ -40,17 +40,17 @@
StateSnapshot({
'attributes': ReadOnlyDict({
<UpdateEntityStateAttribute.AUTO_UPDATE: 'auto_update'>: False,
'device_class': 'firmware',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'firmware',
<UpdateEntityStateAttribute.DISPLAY_PRECISION: 'display_precision'>: 0,
'entity_picture': '/api/brands/integration/airgradient/icon.png',
'friendly_name': 'Airgradient Firmware',
<EntityStateAttribute.ENTITY_PICTURE: 'entity_picture'>: '/api/brands/integration/airgradient/icon.png',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airgradient Firmware',
<UpdateEntityStateAttribute.IN_PROGRESS: 'in_progress'>: False,
<UpdateEntityStateAttribute.INSTALLED_VERSION: 'installed_version'>: '3.1.1',
<UpdateEntityStateAttribute.LATEST_VERSION: 'latest_version'>: '3.1.4',
<UpdateEntityStateAttribute.RELEASE_SUMMARY: 'release_summary'>: None,
<UpdateEntityStateAttribute.RELEASE_URL: 'release_url'>: None,
<UpdateEntityStateAttribute.SKIPPED_VERSION: 'skipped_version'>: None,
'supported_features': <UpdateEntityFeature: 0>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <UpdateEntityFeature: 0>,
<UpdateEntityStateAttribute.TITLE: 'title'>: None,
<UpdateEntityStateAttribute.UPDATE_PERCENTAGE: 'update_percentage'>: None,
}),
@@ -44,13 +44,13 @@
# name: test_sensor[sensor.home_carbon_monoxide-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by Airly',
'device_class': 'carbon_monoxide',
'friendly_name': 'Home Carbon monoxide',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by Airly',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'carbon_monoxide',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Home Carbon monoxide',
'limit': 4000,
'percent': 4,
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.home_carbon_monoxide',
@@ -104,11 +104,11 @@
StateSnapshot({
'attributes': ReadOnlyDict({
'advice': 'Catch your breath!',
'attribution': 'Data provided by Airly',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by Airly',
'description': 'Great air here today!',
'friendly_name': 'Home Common air quality index',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Home Common air quality index',
'level': 'very low',
'unit_of_measurement': 'CAQI',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'CAQI',
}),
'context': <ANY>,
'entity_id': 'sensor.home_common_air_quality_index',
@@ -163,11 +163,11 @@
# name: test_sensor[sensor.home_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by Airly',
'device_class': 'humidity',
'friendly_name': 'Home Humidity',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by Airly',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Home Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.home_humidity',
@@ -222,13 +222,13 @@
# name: test_sensor[sensor.home_nitrogen_dioxide-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by Airly',
'device_class': 'nitrogen_dioxide',
'friendly_name': 'Home Nitrogen dioxide',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by Airly',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'nitrogen_dioxide',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Home Nitrogen dioxide',
'limit': 25,
'percent': 64,
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.home_nitrogen_dioxide',
@@ -283,13 +283,13 @@
# name: test_sensor[sensor.home_ozone-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by Airly',
'device_class': 'ozone',
'friendly_name': 'Home Ozone',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by Airly',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'ozone',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Home Ozone',
'limit': 100,
'percent': 42,
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.home_ozone',
@@ -344,11 +344,11 @@
# name: test_sensor[sensor.home_pm1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by Airly',
'device_class': 'pm1',
'friendly_name': 'Home PM1',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by Airly',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm1',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Home PM1',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.home_pm1',
@@ -403,13 +403,13 @@
# name: test_sensor[sensor.home_pm10-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by Airly',
'device_class': 'pm10',
'friendly_name': 'Home PM10',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by Airly',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm10',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Home PM10',
'limit': 45,
'percent': 14,
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.home_pm10',
@@ -464,13 +464,13 @@
# name: test_sensor[sensor.home_pm2_5-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by Airly',
'device_class': 'pm25',
'friendly_name': 'Home PM2.5',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by Airly',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm25',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Home PM2.5',
'limit': 15,
'percent': 29,
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.home_pm2_5',
@@ -525,11 +525,11 @@
# name: test_sensor[sensor.home_pressure-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by Airly',
'device_class': 'pressure',
'friendly_name': 'Home Pressure',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by Airly',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pressure',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Home Pressure',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPressure.HPA: 'hPa'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPressure.HPA: 'hPa'>,
}),
'context': <ANY>,
'entity_id': 'sensor.home_pressure',
@@ -584,13 +584,13 @@
# name: test_sensor[sensor.home_sulphur_dioxide-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by Airly',
'device_class': 'sulphur_dioxide',
'friendly_name': 'Home Sulphur dioxide',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by Airly',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'sulphur_dioxide',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Home Sulphur dioxide',
'limit': 40,
'percent': 35,
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.home_sulphur_dioxide',
@@ -645,11 +645,11 @@
# name: test_sensor[sensor.home_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by Airly',
'device_class': 'temperature',
'friendly_name': 'Home Temperature',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by Airly',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Home Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.home_temperature',
@@ -39,7 +39,7 @@
# name: test_buttons[button.test_thermostat_recalibrate_co2_sensor-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Test Thermostat Recalibrate CO2 sensor',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Thermostat Recalibrate CO2 sensor',
}),
'context': <ANY>,
'entity_id': 'button.test_thermostat_recalibrate_co2_sensor',
@@ -89,8 +89,8 @@
# name: test_buttons[button.test_thermostat_restart-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'restart',
'friendly_name': 'Test Thermostat Restart',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'restart',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Thermostat Restart',
}),
'context': <ANY>,
'entity_id': 'button.test_thermostat_restart',
@@ -52,7 +52,7 @@
'attributes': ReadOnlyDict({
<ClimateEntityStateAttribute.CURRENT_HUMIDITY: 'current_humidity'>: 45.0,
<ClimateEntityStateAttribute.CURRENT_TEMPERATURE: 'current_temperature'>: 22.0,
'friendly_name': 'Test Thermostat',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Thermostat',
<ClimateEntityStateAttribute.HVAC_ACTION: 'hvac_action'>: <HVACAction.IDLE: 'idle'>,
<ClimateEntityCapabilityAttribute.HVAC_MODES: 'hvac_modes'>: list([
<HVACMode.HEAT: 'heat'>,
@@ -65,7 +65,7 @@
'away',
'boost',
]),
'supported_features': <ClimateEntityFeature: 17>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <ClimateEntityFeature: 17>,
<ClimateEntityStateAttribute.TEMPERATURE: 'temperature'>: 22.0,
}),
'context': <ANY>,
@@ -44,13 +44,13 @@
# name: test_number_entities[number.test_thermostat_hysteresis_band-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Test Thermostat Hysteresis band',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Thermostat Hysteresis band',
<NumberEntityCapabilityAttribute.MAX: 'max'>: 0.5,
<NumberEntityCapabilityAttribute.MIN: 'min'>: 0.0,
<NumberEntityCapabilityAttribute.MODE: 'mode'>: <NumberMode.AUTO: 'auto'>,
<NumberEntityCapabilityAttribute.STEP: 'step'>: 0.1,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'number.test_thermostat_hysteresis_band',
@@ -44,10 +44,10 @@
# name: test_sensors[sensor.test_thermostat_air_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Test Thermostat Air temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Thermostat Air temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.test_thermostat_air_temperature',
@@ -97,8 +97,8 @@
# name: test_sensors[sensor.test_thermostat_device_uptime-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'Test Thermostat Device uptime',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Thermostat Device uptime',
}),
'context': <ANY>,
'entity_id': 'sensor.test_thermostat_device_uptime',
@@ -150,7 +150,7 @@
# name: test_sensors[sensor.test_thermostat_error_count-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Test Thermostat Error count',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Thermostat Error count',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
}),
'context': <ANY>,
@@ -209,10 +209,10 @@
# name: test_sensors[sensor.test_thermostat_heating_uptime-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'duration',
'friendly_name': 'Test Thermostat Heating uptime',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'duration',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Thermostat Heating uptime',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfTime.HOURS: 'h'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTime.HOURS: 'h'>,
}),
'context': <ANY>,
'entity_id': 'sensor.test_thermostat_heating_uptime',
@@ -264,10 +264,10 @@
# name: test_sensors[sensor.test_thermostat_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'humidity',
'friendly_name': 'Test Thermostat Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Thermostat Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.test_thermostat_humidity',
@@ -39,7 +39,7 @@
# name: test_switches[switch.test_thermostat_actuator_exercise_disabled-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Test Thermostat Actuator exercise disabled',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Thermostat Actuator exercise disabled',
}),
'context': <ANY>,
'entity_id': 'switch.test_thermostat_actuator_exercise_disabled',
@@ -89,7 +89,7 @@
# name: test_switches[switch.test_thermostat_child_lock-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Test Thermostat Child lock',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Thermostat Child lock',
}),
'context': <ANY>,
'entity_id': 'switch.test_thermostat_child_lock',
@@ -39,8 +39,8 @@
# name: test_all_entities[airos_NanoStation_M5_sta_v6.3.16.json][binary_sensor.nanostation_m5_dhcp_client-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'running',
'friendly_name': 'NanoStation M5 DHCP client',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'running',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation M5 DHCP client',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.nanostation_m5_dhcp_client',
@@ -90,8 +90,8 @@
# name: test_all_entities[airos_NanoStation_M5_sta_v6.3.16.json][binary_sensor.nanostation_m5_dhcp_server-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'running',
'friendly_name': 'NanoStation M5 DHCP server',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'running',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation M5 DHCP server',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.nanostation_m5_dhcp_server',
@@ -141,8 +141,8 @@
# name: test_all_entities[airos_NanoStation_M5_sta_v6.3.16.json][binary_sensor.nanostation_m5_pppoe_link-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'connectivity',
'friendly_name': 'NanoStation M5 PPPoE link',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'connectivity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation M5 PPPoE link',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.nanostation_m5_pppoe_link',
@@ -192,8 +192,8 @@
# name: test_all_entities[airos_NanoStation_loco_M5_v6.3.16_XM_sta.json][binary_sensor.nanostation_loco_m5_client_dhcp_client-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'running',
'friendly_name': 'NanoStation loco M5 Client DHCP client',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'running',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation loco M5 Client DHCP client',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.nanostation_loco_m5_client_dhcp_client',
@@ -243,8 +243,8 @@
# name: test_all_entities[airos_NanoStation_loco_M5_v6.3.16_XM_sta.json][binary_sensor.nanostation_loco_m5_client_dhcp_server-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'running',
'friendly_name': 'NanoStation loco M5 Client DHCP server',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'running',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation loco M5 Client DHCP server',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.nanostation_loco_m5_client_dhcp_server',
@@ -294,8 +294,8 @@
# name: test_all_entities[airos_NanoStation_loco_M5_v6.3.16_XM_sta.json][binary_sensor.nanostation_loco_m5_client_pppoe_link-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'connectivity',
'friendly_name': 'NanoStation loco M5 Client PPPoE link',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'connectivity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation loco M5 Client PPPoE link',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.nanostation_loco_m5_client_pppoe_link',
@@ -345,8 +345,8 @@
# name: test_all_entities[airos_liteapgps_ap_ptmp_40mhz.json][binary_sensor.house_bridge_dhcp_client-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'running',
'friendly_name': 'House-Bridge DHCP client',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'running',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'House-Bridge DHCP client',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.house_bridge_dhcp_client',
@@ -396,8 +396,8 @@
# name: test_all_entities[airos_liteapgps_ap_ptmp_40mhz.json][binary_sensor.house_bridge_dhcp_server-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'running',
'friendly_name': 'House-Bridge DHCP server',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'running',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'House-Bridge DHCP server',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.house_bridge_dhcp_server',
@@ -447,8 +447,8 @@
# name: test_all_entities[airos_liteapgps_ap_ptmp_40mhz.json][binary_sensor.house_bridge_dhcpv6_server-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'running',
'friendly_name': 'House-Bridge DHCPv6 server',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'running',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'House-Bridge DHCPv6 server',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.house_bridge_dhcpv6_server',
@@ -498,7 +498,7 @@
# name: test_all_entities[airos_liteapgps_ap_ptmp_40mhz.json][binary_sensor.house_bridge_port_forwarding-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'House-Bridge Port forwarding',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'House-Bridge Port forwarding',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.house_bridge_port_forwarding',
@@ -548,8 +548,8 @@
# name: test_all_entities[airos_liteapgps_ap_ptmp_40mhz.json][binary_sensor.house_bridge_pppoe_link-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'connectivity',
'friendly_name': 'House-Bridge PPPoE link',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'connectivity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'House-Bridge PPPoE link',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.house_bridge_pppoe_link',
@@ -599,8 +599,8 @@
# name: test_all_entities[airos_loco5ac_ap-ptp.json][binary_sensor.nanostation_5ac_ap_name_dhcp_client-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'running',
'friendly_name': 'NanoStation 5AC ap name DHCP client',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'running',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation 5AC ap name DHCP client',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.nanostation_5ac_ap_name_dhcp_client',
@@ -650,8 +650,8 @@
# name: test_all_entities[airos_loco5ac_ap-ptp.json][binary_sensor.nanostation_5ac_ap_name_dhcp_server-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'running',
'friendly_name': 'NanoStation 5AC ap name DHCP server',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'running',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation 5AC ap name DHCP server',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.nanostation_5ac_ap_name_dhcp_server',
@@ -701,8 +701,8 @@
# name: test_all_entities[airos_loco5ac_ap-ptp.json][binary_sensor.nanostation_5ac_ap_name_dhcpv6_server-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'running',
'friendly_name': 'NanoStation 5AC ap name DHCPv6 server',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'running',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation 5AC ap name DHCPv6 server',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.nanostation_5ac_ap_name_dhcpv6_server',
@@ -752,7 +752,7 @@
# name: test_all_entities[airos_loco5ac_ap-ptp.json][binary_sensor.nanostation_5ac_ap_name_port_forwarding-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'NanoStation 5AC ap name Port forwarding',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation 5AC ap name Port forwarding',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.nanostation_5ac_ap_name_port_forwarding',
@@ -802,8 +802,8 @@
# name: test_all_entities[airos_loco5ac_ap-ptp.json][binary_sensor.nanostation_5ac_ap_name_pppoe_link-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'connectivity',
'friendly_name': 'NanoStation 5AC ap name PPPoE link',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'connectivity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation 5AC ap name PPPoE link',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.nanostation_5ac_ap_name_pppoe_link',
@@ -41,10 +41,10 @@
# name: test_all_entities[sensor.nanostation_5ac_ap_name_antenna_gain-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'signal_strength',
'friendly_name': 'NanoStation 5AC ap name Antenna gain',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'signal_strength',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation 5AC ap name Antenna gain',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'dB',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'dB',
}),
'context': <ANY>,
'entity_id': 'sensor.nanostation_5ac_ap_name_antenna_gain',
@@ -99,9 +99,9 @@
# name: test_all_entities[sensor.nanostation_5ac_ap_name_cpu_load-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'NanoStation 5AC ap name CPU load',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation 5AC ap name CPU load',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.nanostation_5ac_ap_name_cpu_load',
@@ -159,10 +159,10 @@
# name: test_all_entities[sensor.nanostation_5ac_ap_name_download_capacity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'data_rate',
'friendly_name': 'NanoStation 5AC ap name Download capacity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'data_rate',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation 5AC ap name Download capacity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfDataRate.MEGABITS_PER_SECOND: 'Mbit/s'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfDataRate.MEGABITS_PER_SECOND: 'Mbit/s'>,
}),
'context': <ANY>,
'entity_id': 'sensor.nanostation_5ac_ap_name_download_capacity',
@@ -217,8 +217,8 @@
# name: test_all_entities[sensor.nanostation_5ac_ap_name_network_role-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'NanoStation 5AC ap name Network role',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation 5AC ap name Network role',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'bridge',
'router',
@@ -280,10 +280,10 @@
# name: test_all_entities[sensor.nanostation_5ac_ap_name_throughput_receive_actual-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'data_rate',
'friendly_name': 'NanoStation 5AC ap name Throughput receive (actual)',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'data_rate',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation 5AC ap name Throughput receive (actual)',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfDataRate.MEGABITS_PER_SECOND: 'Mbit/s'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfDataRate.MEGABITS_PER_SECOND: 'Mbit/s'>,
}),
'context': <ANY>,
'entity_id': 'sensor.nanostation_5ac_ap_name_throughput_receive_actual',
@@ -341,10 +341,10 @@
# name: test_all_entities[sensor.nanostation_5ac_ap_name_throughput_transmit_actual-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'data_rate',
'friendly_name': 'NanoStation 5AC ap name Throughput transmit (actual)',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'data_rate',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation 5AC ap name Throughput transmit (actual)',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfDataRate.MEGABITS_PER_SECOND: 'Mbit/s'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfDataRate.MEGABITS_PER_SECOND: 'Mbit/s'>,
}),
'context': <ANY>,
'entity_id': 'sensor.nanostation_5ac_ap_name_throughput_transmit_actual',
@@ -402,10 +402,10 @@
# name: test_all_entities[sensor.nanostation_5ac_ap_name_upload_capacity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'data_rate',
'friendly_name': 'NanoStation 5AC ap name Upload capacity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'data_rate',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation 5AC ap name Upload capacity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfDataRate.MEGABITS_PER_SECOND: 'Mbit/s'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfDataRate.MEGABITS_PER_SECOND: 'Mbit/s'>,
}),
'context': <ANY>,
'entity_id': 'sensor.nanostation_5ac_ap_name_upload_capacity',
@@ -461,9 +461,9 @@
# name: test_all_entities[sensor.nanostation_5ac_ap_name_uptime-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'duration',
'friendly_name': 'NanoStation 5AC ap name Uptime',
'unit_of_measurement': <UnitOfTime.DAYS: 'd'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'duration',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation 5AC ap name Uptime',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTime.DAYS: 'd'>,
}),
'context': <ANY>,
'entity_id': 'sensor.nanostation_5ac_ap_name_uptime',
@@ -519,9 +519,9 @@
# name: test_all_entities[sensor.nanostation_5ac_ap_name_wireless_distance-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'distance',
'friendly_name': 'NanoStation 5AC ap name Wireless distance',
'unit_of_measurement': <UnitOfLength.KILOMETERS: 'km'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'distance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation 5AC ap name Wireless distance',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfLength.KILOMETERS: 'km'>,
}),
'context': <ANY>,
'entity_id': 'sensor.nanostation_5ac_ap_name_wireless_distance',
@@ -576,10 +576,10 @@
# name: test_all_entities[sensor.nanostation_5ac_ap_name_wireless_frequency-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'frequency',
'friendly_name': 'NanoStation 5AC ap name Wireless frequency',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'frequency',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation 5AC ap name Wireless frequency',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfFrequency.MEGAHERTZ: 'MHz'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfFrequency.MEGAHERTZ: 'MHz'>,
}),
'context': <ANY>,
'entity_id': 'sensor.nanostation_5ac_ap_name_wireless_frequency',
@@ -634,8 +634,8 @@
# name: test_all_entities[sensor.nanostation_5ac_ap_name_wireless_mode-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'NanoStation 5AC ap name Wireless mode',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation 5AC ap name Wireless mode',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'point_to_point',
'point_to_multipoint',
@@ -694,8 +694,8 @@
# name: test_all_entities[sensor.nanostation_5ac_ap_name_wireless_role-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'NanoStation 5AC ap name Wireless role',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation 5AC ap name Wireless role',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'station',
'access_point',
@@ -749,7 +749,7 @@
# name: test_all_entities[sensor.nanostation_5ac_ap_name_wireless_ssid-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'NanoStation 5AC ap name Wireless SSID',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'NanoStation 5AC ap name Wireless SSID',
}),
'context': <ANY>,
'entity_id': 'sensor.nanostation_5ac_ap_name_wireless_ssid',
@@ -61,7 +61,7 @@
'high',
'auto',
]),
'friendly_name': 'living room',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'living room',
<ClimateEntityCapabilityAttribute.HVAC_MODES: 'hvac_modes'>: list([
<HVACMode.HEAT: 'heat'>,
<HVACMode.COOL: 'cool'>,
@@ -69,7 +69,7 @@
]),
<ClimateEntityCapabilityAttribute.MAX_TEMP: 'max_temp'>: 30.0,
<ClimateEntityCapabilityAttribute.MIN_TEMP: 'min_temp'>: 16.0,
'supported_features': <ClimateEntityFeature: 425>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <ClimateEntityFeature: 425>,
<ClimateEntityCapabilityAttribute.SWING_MODES: 'swing_modes'>: list([
'on',
'off',
@@ -148,7 +148,7 @@
'high',
'auto',
]),
'friendly_name': 'living room',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'living room',
<ClimateEntityCapabilityAttribute.HVAC_MODES: 'hvac_modes'>: list([
<HVACMode.HEAT: 'heat'>,
<HVACMode.COOL: 'cool'>,
@@ -156,7 +156,7 @@
]),
<ClimateEntityCapabilityAttribute.MAX_TEMP: 'max_temp'>: 30.0,
<ClimateEntityCapabilityAttribute.MIN_TEMP: 'min_temp'>: 16.0,
'supported_features': <ClimateEntityFeature: 425>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <ClimateEntityFeature: 425>,
<ClimateEntityStateAttribute.SWING_MODE: 'swing_mode'>: 'off',
<ClimateEntityCapabilityAttribute.SWING_MODES: 'swing_modes'>: list([
'on',
@@ -41,10 +41,10 @@
# name: test_sensor_with_climate_data[sensor.living_room_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'humidity',
'friendly_name': 'living room Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'living room Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_humidity',
@@ -99,10 +99,10 @@
# name: test_sensor_with_climate_data[sensor.living_room_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'living room Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'living room Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_temperature',
@@ -47,10 +47,10 @@
# name: test_all_device_types[view_plus][sensor.living_room_atmospheric_pressure-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'atmospheric_pressure',
'friendly_name': 'Living Room Atmospheric pressure',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'atmospheric_pressure',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Atmospheric pressure',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPressure.HPA: 'hPa'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPressure.HPA: 'hPa'>,
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_atmospheric_pressure',
@@ -105,10 +105,10 @@
# name: test_all_device_types[view_plus][sensor.living_room_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'battery',
'friendly_name': 'Living Room Battery',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'battery',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Battery',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_battery',
@@ -163,10 +163,10 @@
# name: test_all_device_types[view_plus][sensor.living_room_carbon_dioxide-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'carbon_dioxide',
'friendly_name': 'Living Room Carbon dioxide',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'carbon_dioxide',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Carbon dioxide',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppm',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppm',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_carbon_dioxide',
@@ -221,10 +221,10 @@
# name: test_all_device_types[view_plus][sensor.living_room_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'humidity',
'friendly_name': 'Living Room Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_humidity',
@@ -279,10 +279,10 @@
# name: test_all_device_types[view_plus][sensor.living_room_pm1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'pm1',
'friendly_name': 'Living Room PM1',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm1',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room PM1',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_pm1',
@@ -337,10 +337,10 @@
# name: test_all_device_types[view_plus][sensor.living_room_pm2_5-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'pm25',
'friendly_name': 'Living Room PM2.5',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm25',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room PM2.5',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_pm2_5',
@@ -395,9 +395,9 @@
# name: test_all_device_types[view_plus][sensor.living_room_radon-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Living Room Radon',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Radon',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'Bq/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'Bq/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_radon',
@@ -452,10 +452,10 @@
# name: test_all_device_types[view_plus][sensor.living_room_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Living Room Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_temperature',
@@ -510,10 +510,10 @@
# name: test_all_device_types[view_plus][sensor.living_room_volatile_organic_compounds_parts-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'volatile_organic_compounds_parts',
'friendly_name': 'Living Room Volatile organic compounds parts',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'volatile_organic_compounds_parts',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Volatile organic compounds parts',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppb',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppb',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_volatile_organic_compounds_parts',
@@ -571,10 +571,10 @@
# name: test_all_device_types[wave_enhance][sensor.bedroom_atmospheric_pressure-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'atmospheric_pressure',
'friendly_name': 'Bedroom Atmospheric pressure',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'atmospheric_pressure',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bedroom Atmospheric pressure',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPressure.HPA: 'hPa'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPressure.HPA: 'hPa'>,
}),
'context': <ANY>,
'entity_id': 'sensor.bedroom_atmospheric_pressure',
@@ -629,10 +629,10 @@
# name: test_all_device_types[wave_enhance][sensor.bedroom_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'battery',
'friendly_name': 'Bedroom Battery',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'battery',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bedroom Battery',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.bedroom_battery',
@@ -687,10 +687,10 @@
# name: test_all_device_types[wave_enhance][sensor.bedroom_carbon_dioxide-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'carbon_dioxide',
'friendly_name': 'Bedroom Carbon dioxide',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'carbon_dioxide',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bedroom Carbon dioxide',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppm',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppm',
}),
'context': <ANY>,
'entity_id': 'sensor.bedroom_carbon_dioxide',
@@ -745,10 +745,10 @@
# name: test_all_device_types[wave_enhance][sensor.bedroom_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'humidity',
'friendly_name': 'Bedroom Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bedroom Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.bedroom_humidity',
@@ -803,10 +803,10 @@
# name: test_all_device_types[wave_enhance][sensor.bedroom_illuminance-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'illuminance',
'friendly_name': 'Bedroom Illuminance',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'illuminance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bedroom Illuminance',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'lx',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'lx',
}),
'context': <ANY>,
'entity_id': 'sensor.bedroom_illuminance',
@@ -861,10 +861,10 @@
# name: test_all_device_types[wave_enhance][sensor.bedroom_sound_pressure-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'sound_pressure',
'friendly_name': 'Bedroom Sound pressure',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'sound_pressure',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bedroom Sound pressure',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfSoundPressure.WEIGHTED_DECIBEL_A: 'dBA'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfSoundPressure.WEIGHTED_DECIBEL_A: 'dBA'>,
}),
'context': <ANY>,
'entity_id': 'sensor.bedroom_sound_pressure',
@@ -919,10 +919,10 @@
# name: test_all_device_types[wave_enhance][sensor.bedroom_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Bedroom Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bedroom Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.bedroom_temperature',
@@ -977,10 +977,10 @@
# name: test_all_device_types[wave_enhance][sensor.bedroom_volatile_organic_compounds_parts-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'volatile_organic_compounds_parts',
'friendly_name': 'Bedroom Volatile organic compounds parts',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'volatile_organic_compounds_parts',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bedroom Volatile organic compounds parts',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppb',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppb',
}),
'context': <ANY>,
'entity_id': 'sensor.bedroom_volatile_organic_compounds_parts',
@@ -1038,10 +1038,10 @@
# name: test_all_device_types[wave_plus][sensor.office_atmospheric_pressure-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'atmospheric_pressure',
'friendly_name': 'Office Atmospheric pressure',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'atmospheric_pressure',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Office Atmospheric pressure',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPressure.HPA: 'hPa'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPressure.HPA: 'hPa'>,
}),
'context': <ANY>,
'entity_id': 'sensor.office_atmospheric_pressure',
@@ -1096,10 +1096,10 @@
# name: test_all_device_types[wave_plus][sensor.office_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'battery',
'friendly_name': 'Office Battery',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'battery',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Office Battery',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.office_battery',
@@ -1154,10 +1154,10 @@
# name: test_all_device_types[wave_plus][sensor.office_carbon_dioxide-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'carbon_dioxide',
'friendly_name': 'Office Carbon dioxide',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'carbon_dioxide',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Office Carbon dioxide',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppm',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppm',
}),
'context': <ANY>,
'entity_id': 'sensor.office_carbon_dioxide',
@@ -1212,10 +1212,10 @@
# name: test_all_device_types[wave_plus][sensor.office_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'humidity',
'friendly_name': 'Office Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Office Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.office_humidity',
@@ -1270,9 +1270,9 @@
# name: test_all_device_types[wave_plus][sensor.office_radon-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Office Radon',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Office Radon',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'Bq/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'Bq/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.office_radon',
@@ -1327,10 +1327,10 @@
# name: test_all_device_types[wave_plus][sensor.office_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Office Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Office Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.office_temperature',
@@ -1385,10 +1385,10 @@
# name: test_all_device_types[wave_plus][sensor.office_volatile_organic_compounds_parts-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'volatile_organic_compounds_parts',
'friendly_name': 'Office Volatile organic compounds parts',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'volatile_organic_compounds_parts',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Office Volatile organic compounds parts',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppb',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppb',
}),
'context': <ANY>,
'entity_id': 'sensor.office_volatile_organic_compounds_parts',
@@ -40,10 +40,10 @@
StateSnapshot({
'attributes': ReadOnlyDict({
<CoverEntityStateAttribute.CURRENT_POSITION: 'current_position'>: 90,
'device_class': 'damper',
'friendly_name': 'Zone 1 Damper',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'damper',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Zone 1 Damper',
<CoverEntityStateAttribute.IS_CLOSED: 'is_closed'>: False,
'supported_features': <CoverEntityFeature: 7>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <CoverEntityFeature: 7>,
}),
'context': <ANY>,
'entity_id': 'cover.zone_1_damper',
@@ -94,10 +94,10 @@
StateSnapshot({
'attributes': ReadOnlyDict({
<CoverEntityStateAttribute.CURRENT_POSITION: 'current_position'>: 100,
'device_class': 'damper',
'friendly_name': 'Zone 2 Damper',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'damper',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Zone 2 Damper',
<CoverEntityStateAttribute.IS_CLOSED: 'is_closed'>: False,
'supported_features': <CoverEntityFeature: 7>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <CoverEntityFeature: 7>,
}),
'context': <ANY>,
'entity_id': 'cover.zone_2_damper',
@@ -41,10 +41,10 @@
# name: test_airzone_create_sensors[sensor.airzone_2_1_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'humidity',
'friendly_name': 'Airzone 2:1 Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airzone 2:1 Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.airzone_2_1_humidity',
@@ -99,10 +99,10 @@
# name: test_airzone_create_sensors[sensor.airzone_2_1_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Airzone 2:1 Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airzone 2:1 Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.airzone_2_1_temperature',
@@ -157,10 +157,10 @@
# name: test_airzone_create_sensors[sensor.airzone_dhw_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Airzone DHW Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airzone DHW Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.airzone_dhw_temperature',
@@ -212,10 +212,10 @@
# name: test_airzone_create_sensors[sensor.airzone_webserver_rssi-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'signal_strength',
'friendly_name': 'Airzone WebServer RSSI',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'signal_strength',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Airzone WebServer RSSI',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'dBm',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'dBm',
}),
'context': <ANY>,
'entity_id': 'sensor.airzone_webserver_rssi',
@@ -270,10 +270,10 @@
# name: test_airzone_create_sensors[sensor.aux_heat_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Aux Heat Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Aux Heat Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.aux_heat_temperature',
@@ -325,10 +325,10 @@
# name: test_airzone_create_sensors[sensor.despacho_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'battery',
'friendly_name': 'Despacho Battery',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'battery',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Despacho Battery',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.despacho_battery',
@@ -380,10 +380,10 @@
# name: test_airzone_create_sensors[sensor.despacho_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'humidity',
'friendly_name': 'Despacho Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Despacho Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.despacho_humidity',
@@ -435,9 +435,9 @@
# name: test_airzone_create_sensors[sensor.despacho_signal_strength-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Despacho Signal strength',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Despacho Signal strength',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.despacho_signal_strength',
@@ -492,10 +492,10 @@
# name: test_airzone_create_sensors[sensor.despacho_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Despacho Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Despacho Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.despacho_temperature',
@@ -550,10 +550,10 @@
# name: test_airzone_create_sensors[sensor.dkn_plus_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'DKN Plus Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'DKN Plus Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.dkn_plus_temperature',
@@ -605,10 +605,10 @@
# name: test_airzone_create_sensors[sensor.dorm_1_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'battery',
'friendly_name': 'Dorm #1 Battery',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'battery',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Dorm #1 Battery',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.dorm_1_battery',
@@ -660,10 +660,10 @@
# name: test_airzone_create_sensors[sensor.dorm_1_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'humidity',
'friendly_name': 'Dorm #1 Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Dorm #1 Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.dorm_1_humidity',
@@ -715,9 +715,9 @@
# name: test_airzone_create_sensors[sensor.dorm_1_signal_strength-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Dorm #1 Signal strength',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Dorm #1 Signal strength',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.dorm_1_signal_strength',
@@ -772,10 +772,10 @@
# name: test_airzone_create_sensors[sensor.dorm_1_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Dorm #1 Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Dorm #1 Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.dorm_1_temperature',
@@ -827,10 +827,10 @@
# name: test_airzone_create_sensors[sensor.dorm_2_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'battery',
'friendly_name': 'Dorm #2 Battery',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'battery',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Dorm #2 Battery',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.dorm_2_battery',
@@ -882,10 +882,10 @@
# name: test_airzone_create_sensors[sensor.dorm_2_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'humidity',
'friendly_name': 'Dorm #2 Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Dorm #2 Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.dorm_2_humidity',
@@ -937,9 +937,9 @@
# name: test_airzone_create_sensors[sensor.dorm_2_signal_strength-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Dorm #2 Signal strength',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Dorm #2 Signal strength',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.dorm_2_signal_strength',
@@ -994,10 +994,10 @@
# name: test_airzone_create_sensors[sensor.dorm_2_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Dorm #2 Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Dorm #2 Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.dorm_2_temperature',
@@ -1049,10 +1049,10 @@
# name: test_airzone_create_sensors[sensor.dorm_ppal_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'battery',
'friendly_name': 'Dorm Ppal Battery',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'battery',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Dorm Ppal Battery',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.dorm_ppal_battery',
@@ -1104,10 +1104,10 @@
# name: test_airzone_create_sensors[sensor.dorm_ppal_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'humidity',
'friendly_name': 'Dorm Ppal Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Dorm Ppal Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.dorm_ppal_humidity',
@@ -1159,9 +1159,9 @@
# name: test_airzone_create_sensors[sensor.dorm_ppal_signal_strength-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Dorm Ppal Signal strength',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Dorm Ppal Signal strength',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.dorm_ppal_signal_strength',
@@ -1216,10 +1216,10 @@
# name: test_airzone_create_sensors[sensor.dorm_ppal_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Dorm Ppal Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Dorm Ppal Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.dorm_ppal_temperature',
@@ -1271,10 +1271,10 @@
# name: test_airzone_create_sensors[sensor.salon_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'humidity',
'friendly_name': 'Salon Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Salon Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.salon_humidity',
@@ -1329,10 +1329,10 @@
# name: test_airzone_create_sensors[sensor.salon_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Salon Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Salon Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.salon_temperature',
@@ -39,10 +39,10 @@
# name: test_cover_entities[cover.test_door-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'garage',
'friendly_name': 'Test Door',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'garage',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Door',
<CoverEntityStateAttribute.IS_CLOSED: 'is_closed'>: True,
'supported_features': <CoverEntityFeature: 3>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <CoverEntityFeature: 3>,
}),
'context': <ANY>,
'entity_id': 'cover.test_door',
@@ -41,10 +41,10 @@
# name: test_sensor_entities[sensor.test_door_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'battery',
'friendly_name': 'Test Door Battery',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'battery',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Door Battery',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.test_door_battery',
@@ -39,8 +39,8 @@
# name: test_all_entities[binary_sensor.echo_test_connectivity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'connectivity',
'friendly_name': 'Echo Test Connectivity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'connectivity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Echo Test Connectivity',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.echo_test_connectivity',
@@ -39,7 +39,7 @@
# name: test_all_entities[button.fake_email_gmail_com_test_routine-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'fake_email@gmail.com Test Routine',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'fake_email@gmail.com Test Routine',
}),
'context': <ANY>,
'entity_id': 'button.fake_email_gmail_com_test_routine',
@@ -47,7 +47,7 @@
<EventEntityCapabilityAttribute.EVENT_TYPES: 'event_types'>: list([
'triggered',
]),
'friendly_name': 'Echo Test Voice event',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Echo Test Voice event',
}),
'context': <ANY>,
'entity_id': 'event.echo_test_voice_event',
@@ -63,7 +63,7 @@
<EventEntityCapabilityAttribute.EVENT_TYPES: 'event_types'>: list([
'triggered',
]),
'friendly_name': 'Echo Test Voice event',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Echo Test Voice event',
'intent': 'PlayMusicIntent',
'voice_command': 'Play some music',
'voice_reply': 'Echo Test',
@@ -40,9 +40,9 @@
# name: test_all_entities[media_player.echo_test-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'speaker',
'friendly_name': 'Echo Test',
'supported_features': <MediaPlayerEntityFeature: 5644>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Echo Test',
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 5644>,
}),
'context': <ANY>,
'entity_id': 'media_player.echo_test',
@@ -39,8 +39,8 @@
# name: test_all_entities[notify.echo_test_announce-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Echo Test Announce',
'supported_features': <NotifyEntityFeature: 0>,
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Echo Test Announce',
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <NotifyEntityFeature: 0>,
}),
'context': <ANY>,
'entity_id': 'notify.echo_test_announce',
@@ -90,8 +90,8 @@
# name: test_all_entities[notify.echo_test_speak-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Echo Test Speak',
'supported_features': <NotifyEntityFeature: 0>,
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Echo Test Speak',
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <NotifyEntityFeature: 0>,
}),
'context': <ANY>,
'entity_id': 'notify.echo_test_speak',
@@ -45,7 +45,7 @@
# name: test_all_entities[select.echo_test_drop_in-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Echo Test Drop In',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Echo Test Drop In',
<SelectEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'all',
'home',
@@ -39,8 +39,8 @@
# name: test_all_entities[sensor.echo_test_next_alarm-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'Echo Test Next alarm',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Echo Test Next alarm',
}),
'context': <ANY>,
'entity_id': 'sensor.echo_test_next_alarm',
@@ -90,8 +90,8 @@
# name: test_all_entities[sensor.echo_test_next_reminder-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'Echo Test Next reminder',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Echo Test Next reminder',
}),
'context': <ANY>,
'entity_id': 'sensor.echo_test_next_reminder',
@@ -141,8 +141,8 @@
# name: test_all_entities[sensor.echo_test_next_timer-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'Echo Test Next timer',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Echo Test Next timer',
}),
'context': <ANY>,
'entity_id': 'sensor.echo_test_next_timer',
@@ -197,10 +197,10 @@
# name: test_all_entities[sensor.echo_test_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Echo Test Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Echo Test Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.echo_test_temperature',
@@ -39,7 +39,7 @@
# name: test_all_entities[switch.echo_test_announcements-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Echo Test Announcements',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Echo Test Announcements',
}),
'context': <ANY>,
'entity_id': 'switch.echo_test_announcements',
@@ -89,7 +89,7 @@
# name: test_all_entities[switch.echo_test_communications-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Echo Test Communications',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Echo Test Communications',
}),
'context': <ANY>,
'entity_id': 'switch.echo_test_communications',
@@ -139,7 +139,7 @@
# name: test_all_entities[switch.echo_test_do_not_disturb-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Echo Test Do not disturb',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Echo Test Do not disturb',
}),
'context': <ANY>,
'entity_id': 'switch.echo_test_do_not_disturb',
@@ -39,8 +39,8 @@
# name: test_all_entities[todo.fake_email_gmail_com_concerts-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'fake_email@gmail.com Concerts',
'supported_features': <TodoListEntityFeature: 7>,
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'fake_email@gmail.com Concerts',
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <TodoListEntityFeature: 7>,
}),
'context': <ANY>,
'entity_id': 'todo.fake_email_gmail_com_concerts',
@@ -90,8 +90,8 @@
# name: test_all_entities[todo.fake_email_gmail_com_shopping_list-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'fake_email@gmail.com Shopping list',
'supported_features': <TodoListEntityFeature: 7>,
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'fake_email@gmail.com Shopping list',
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <TodoListEntityFeature: 7>,
}),
'context': <ANY>,
'entity_id': 'todo.fake_email_gmail_com_shopping_list',
@@ -141,8 +141,8 @@
# name: test_all_entities[todo.fake_email_gmail_com_to_do_list-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'fake_email@gmail.com To-do list',
'supported_features': <TodoListEntityFeature: 7>,
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'fake_email@gmail.com To-do list',
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <TodoListEntityFeature: 7>,
}),
'context': <ANY>,
'entity_id': 'todo.fake_email_gmail_com_to_do_list',
@@ -44,10 +44,10 @@
# name: test_all_entities[sensor.5366960e8b18_average_noise-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'sound_pressure',
'friendly_name': '5366960e8b18 Average noise',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'sound_pressure',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: '5366960e8b18 Average noise',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfSoundPressure.DECIBEL: 'dB'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfSoundPressure.DECIBEL: 'dB'>,
}),
'context': <ANY>,
'entity_id': 'sensor.5366960e8b18_average_noise',
@@ -102,10 +102,10 @@
# name: test_all_entities[sensor.5366960e8b18_bme280_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'humidity',
'friendly_name': '5366960e8b18 BME280 humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: '5366960e8b18 BME280 humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.5366960e8b18_bme280_humidity',
@@ -163,10 +163,10 @@
# name: test_all_entities[sensor.5366960e8b18_bme280_pressure-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'pressure',
'friendly_name': '5366960e8b18 BME280 pressure',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pressure',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: '5366960e8b18 BME280 pressure',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPressure.MMHG: 'mmHg'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPressure.MMHG: 'mmHg'>,
}),
'context': <ANY>,
'entity_id': 'sensor.5366960e8b18_bme280_pressure',
@@ -221,10 +221,10 @@
# name: test_all_entities[sensor.5366960e8b18_bme280_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': '5366960e8b18 BME280 temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: '5366960e8b18 BME280 temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.5366960e8b18_bme280_temperature',
@@ -279,10 +279,10 @@
# name: test_all_entities[sensor.5366960e8b18_maximum_noise-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'sound_pressure',
'friendly_name': '5366960e8b18 Maximum noise',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'sound_pressure',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: '5366960e8b18 Maximum noise',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfSoundPressure.DECIBEL: 'dB'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfSoundPressure.DECIBEL: 'dB'>,
}),
'context': <ANY>,
'entity_id': 'sensor.5366960e8b18_maximum_noise',
@@ -337,10 +337,10 @@
# name: test_all_entities[sensor.5366960e8b18_pm10-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'pm10',
'friendly_name': '5366960e8b18 PM10',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm10',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: '5366960e8b18 PM10',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.5366960e8b18_pm10',
@@ -395,10 +395,10 @@
# name: test_all_entities[sensor.5366960e8b18_pm2_5-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'pm25',
'friendly_name': '5366960e8b18 PM2.5',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm25',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: '5366960e8b18 PM2.5',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.5366960e8b18_pm2_5',
@@ -453,9 +453,9 @@
# name: test_all_entities[sensor.5366960e8b18_radiation_level-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': '5366960e8b18 Radiation level',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: '5366960e8b18 Radiation level',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μR/h',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μR/h',
}),
'context': <ANY>,
'entity_id': 'sensor.5366960e8b18_radiation_level',
@@ -510,10 +510,10 @@
# name: test_all_entities[sensor.5366960e8b18_signal_strength-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'signal_strength',
'friendly_name': '5366960e8b18 Signal strength',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'signal_strength',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: '5366960e8b18 Signal strength',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'dBm',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'dBm',
}),
'context': <ANY>,
'entity_id': 'sensor.5366960e8b18_signal_strength',
@@ -47,12 +47,12 @@
# name: test_sensors[AA:AA:AA:AA:AA:AA][sensor.station_a_absolute_pressure-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'pressure',
'friendly_name': 'Station A Absolute pressure',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pressure',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station A Absolute pressure',
'last_measured': HAFakeDatetime(2023, 11, 8, 12, 12, 0, 914000, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPressure.HPA: 'hPa'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPressure.HPA: 'hPa'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_a_absolute_pressure',
@@ -110,12 +110,12 @@
# name: test_sensors[AA:AA:AA:AA:AA:AA][sensor.station_a_daily_rain-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'precipitation',
'friendly_name': 'Station A Daily rain',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'precipitation',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station A Daily rain',
'last_measured': HAFakeDatetime(2023, 11, 8, 12, 12, 0, 914000, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfLength.MILLIMETERS: 'mm'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfLength.MILLIMETERS: 'mm'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_a_daily_rain',
@@ -170,12 +170,12 @@
# name: test_sensors[AA:AA:AA:AA:AA:AA][sensor.station_a_dew_point-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'temperature',
'friendly_name': 'Station A Dew point',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station A Dew point',
'last_measured': HAFakeDatetime(2023, 11, 8, 12, 12, 0, 914000, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_a_dew_point',
@@ -230,12 +230,12 @@
# name: test_sensors[AA:AA:AA:AA:AA:AA][sensor.station_a_feels_like-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'temperature',
'friendly_name': 'Station A Feels like',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station A Feels like',
'last_measured': HAFakeDatetime(2023, 11, 8, 12, 12, 0, 914000, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_a_feels_like',
@@ -293,12 +293,12 @@
# name: test_sensors[AA:AA:AA:AA:AA:AA][sensor.station_a_hourly_rain-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'precipitation_intensity',
'friendly_name': 'Station A Hourly rain',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'precipitation_intensity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station A Hourly rain',
'last_measured': HAFakeDatetime(2023, 11, 8, 12, 12, 0, 914000, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfVolumetricFlux.MILLIMETERS_PER_HOUR: 'mm/h'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfVolumetricFlux.MILLIMETERS_PER_HOUR: 'mm/h'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_a_hourly_rain',
@@ -353,12 +353,12 @@
# name: test_sensors[AA:AA:AA:AA:AA:AA][sensor.station_a_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'humidity',
'friendly_name': 'Station A Humidity',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station A Humidity',
'last_measured': HAFakeDatetime(2023, 11, 8, 12, 12, 0, 914000, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.station_a_humidity',
@@ -413,12 +413,12 @@
# name: test_sensors[AA:AA:AA:AA:AA:AA][sensor.station_a_irradiance-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'irradiance',
'friendly_name': 'Station A Irradiance',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'irradiance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station A Irradiance',
'last_measured': HAFakeDatetime(2023, 11, 8, 12, 12, 0, 914000, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfIrradiance.WATTS_PER_SQUARE_METER: 'W/m²'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfIrradiance.WATTS_PER_SQUARE_METER: 'W/m²'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_a_irradiance',
@@ -468,9 +468,9 @@
# name: test_sensors[AA:AA:AA:AA:AA:AA][sensor.station_a_last_rain-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'timestamp',
'friendly_name': 'Station A Last rain',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station A Last rain',
'last_measured': HAFakeDatetime(2023, 11, 8, 12, 12, 0, 914000, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
}),
'context': <ANY>,
@@ -529,12 +529,12 @@
# name: test_sensors[AA:AA:AA:AA:AA:AA][sensor.station_a_max_daily_gust-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'wind_speed',
'friendly_name': 'Station A Max daily gust',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'wind_speed',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station A Max daily gust',
'last_measured': HAFakeDatetime(2023, 11, 8, 12, 12, 0, 914000, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_a_max_daily_gust',
@@ -592,12 +592,12 @@
# name: test_sensors[AA:AA:AA:AA:AA:AA][sensor.station_a_monthly_rain-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'precipitation',
'friendly_name': 'Station A Monthly rain',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'precipitation',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station A Monthly rain',
'last_measured': HAFakeDatetime(2023, 11, 8, 12, 12, 0, 914000, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfLength.MILLIMETERS: 'mm'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfLength.MILLIMETERS: 'mm'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_a_monthly_rain',
@@ -655,12 +655,12 @@
# name: test_sensors[AA:AA:AA:AA:AA:AA][sensor.station_a_relative_pressure-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'pressure',
'friendly_name': 'Station A Relative pressure',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pressure',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station A Relative pressure',
'last_measured': HAFakeDatetime(2023, 11, 8, 12, 12, 0, 914000, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPressure.HPA: 'hPa'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPressure.HPA: 'hPa'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_a_relative_pressure',
@@ -715,12 +715,12 @@
# name: test_sensors[AA:AA:AA:AA:AA:AA][sensor.station_a_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'temperature',
'friendly_name': 'Station A Temperature',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station A Temperature',
'last_measured': HAFakeDatetime(2023, 11, 8, 12, 12, 0, 914000, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_a_temperature',
@@ -775,11 +775,11 @@
# name: test_sensors[AA:AA:AA:AA:AA:AA][sensor.station_a_uv_index-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'friendly_name': 'Station A UV index',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station A UV index',
'last_measured': HAFakeDatetime(2023, 11, 8, 12, 12, 0, 914000, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'index',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'index',
}),
'context': <ANY>,
'entity_id': 'sensor.station_a_uv_index',
@@ -837,12 +837,12 @@
# name: test_sensors[AA:AA:AA:AA:AA:AA][sensor.station_a_weekly_rain-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'precipitation',
'friendly_name': 'Station A Weekly rain',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'precipitation',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station A Weekly rain',
'last_measured': HAFakeDatetime(2023, 11, 8, 12, 12, 0, 914000, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfLength.MILLIMETERS: 'mm'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfLength.MILLIMETERS: 'mm'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_a_weekly_rain',
@@ -897,12 +897,12 @@
# name: test_sensors[AA:AA:AA:AA:AA:AA][sensor.station_a_wind_direction-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'wind_direction',
'friendly_name': 'Station A Wind direction',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'wind_direction',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station A Wind direction',
'last_measured': HAFakeDatetime(2023, 11, 8, 12, 12, 0, 914000, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT_ANGLE: 'measurement_angle'>,
'unit_of_measurement': '°',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '°',
}),
'context': <ANY>,
'entity_id': 'sensor.station_a_wind_direction',
@@ -960,12 +960,12 @@
# name: test_sensors[AA:AA:AA:AA:AA:AA][sensor.station_a_wind_gust-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'wind_speed',
'friendly_name': 'Station A Wind gust',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'wind_speed',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station A Wind gust',
'last_measured': HAFakeDatetime(2023, 11, 8, 12, 12, 0, 914000, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_a_wind_gust',
@@ -1023,12 +1023,12 @@
# name: test_sensors[AA:AA:AA:AA:AA:AA][sensor.station_a_wind_speed-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'wind_speed',
'friendly_name': 'Station A Wind speed',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'wind_speed',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station A Wind speed',
'last_measured': HAFakeDatetime(2023, 11, 8, 12, 12, 0, 914000, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_a_wind_speed',
@@ -1086,12 +1086,12 @@
# name: test_sensors[CC:CC:CC:CC:CC:CC][sensor.station_c_absolute_pressure-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'pressure',
'friendly_name': 'Station C Absolute pressure',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pressure',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station C Absolute pressure',
'last_measured': HAFakeDatetime(2024, 6, 6, 8, 28, 3, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPressure.HPA: 'hPa'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPressure.HPA: 'hPa'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_c_absolute_pressure',
@@ -1149,12 +1149,12 @@
# name: test_sensors[CC:CC:CC:CC:CC:CC][sensor.station_c_daily_rain-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'precipitation',
'friendly_name': 'Station C Daily rain',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'precipitation',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station C Daily rain',
'last_measured': HAFakeDatetime(2024, 6, 6, 8, 28, 3, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfLength.MILLIMETERS: 'mm'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfLength.MILLIMETERS: 'mm'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_c_daily_rain',
@@ -1209,12 +1209,12 @@
# name: test_sensors[CC:CC:CC:CC:CC:CC][sensor.station_c_dew_point-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'temperature',
'friendly_name': 'Station C Dew point',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station C Dew point',
'last_measured': HAFakeDatetime(2024, 6, 6, 8, 28, 3, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_c_dew_point',
@@ -1269,12 +1269,12 @@
# name: test_sensors[CC:CC:CC:CC:CC:CC][sensor.station_c_feels_like-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'temperature',
'friendly_name': 'Station C Feels like',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station C Feels like',
'last_measured': HAFakeDatetime(2024, 6, 6, 8, 28, 3, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_c_feels_like',
@@ -1332,12 +1332,12 @@
# name: test_sensors[CC:CC:CC:CC:CC:CC][sensor.station_c_hourly_rain-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'precipitation_intensity',
'friendly_name': 'Station C Hourly rain',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'precipitation_intensity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station C Hourly rain',
'last_measured': HAFakeDatetime(2024, 6, 6, 8, 28, 3, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfVolumetricFlux.MILLIMETERS_PER_HOUR: 'mm/h'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfVolumetricFlux.MILLIMETERS_PER_HOUR: 'mm/h'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_c_hourly_rain',
@@ -1392,12 +1392,12 @@
# name: test_sensors[CC:CC:CC:CC:CC:CC][sensor.station_c_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'humidity',
'friendly_name': 'Station C Humidity',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station C Humidity',
'last_measured': HAFakeDatetime(2024, 6, 6, 8, 28, 3, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.station_c_humidity',
@@ -1452,12 +1452,12 @@
# name: test_sensors[CC:CC:CC:CC:CC:CC][sensor.station_c_irradiance-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'irradiance',
'friendly_name': 'Station C Irradiance',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'irradiance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station C Irradiance',
'last_measured': HAFakeDatetime(2024, 6, 6, 8, 28, 3, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfIrradiance.WATTS_PER_SQUARE_METER: 'W/m²'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfIrradiance.WATTS_PER_SQUARE_METER: 'W/m²'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_c_irradiance',
@@ -1507,9 +1507,9 @@
# name: test_sensors[CC:CC:CC:CC:CC:CC][sensor.station_c_last_rain-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'timestamp',
'friendly_name': 'Station C Last rain',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station C Last rain',
'last_measured': HAFakeDatetime(2024, 6, 6, 8, 28, 3, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
}),
'context': <ANY>,
@@ -1568,12 +1568,12 @@
# name: test_sensors[CC:CC:CC:CC:CC:CC][sensor.station_c_max_daily_gust-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'wind_speed',
'friendly_name': 'Station C Max daily gust',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'wind_speed',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station C Max daily gust',
'last_measured': HAFakeDatetime(2024, 6, 6, 8, 28, 3, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_c_max_daily_gust',
@@ -1631,12 +1631,12 @@
# name: test_sensors[CC:CC:CC:CC:CC:CC][sensor.station_c_monthly_rain-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'precipitation',
'friendly_name': 'Station C Monthly rain',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'precipitation',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station C Monthly rain',
'last_measured': HAFakeDatetime(2024, 6, 6, 8, 28, 3, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfLength.MILLIMETERS: 'mm'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfLength.MILLIMETERS: 'mm'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_c_monthly_rain',
@@ -1694,12 +1694,12 @@
# name: test_sensors[CC:CC:CC:CC:CC:CC][sensor.station_c_relative_pressure-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'pressure',
'friendly_name': 'Station C Relative pressure',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pressure',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station C Relative pressure',
'last_measured': HAFakeDatetime(2024, 6, 6, 8, 28, 3, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPressure.HPA: 'hPa'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPressure.HPA: 'hPa'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_c_relative_pressure',
@@ -1754,12 +1754,12 @@
# name: test_sensors[CC:CC:CC:CC:CC:CC][sensor.station_c_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'temperature',
'friendly_name': 'Station C Temperature',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station C Temperature',
'last_measured': HAFakeDatetime(2024, 6, 6, 8, 28, 3, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_c_temperature',
@@ -1814,11 +1814,11 @@
# name: test_sensors[CC:CC:CC:CC:CC:CC][sensor.station_c_uv_index-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'friendly_name': 'Station C UV index',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station C UV index',
'last_measured': HAFakeDatetime(2024, 6, 6, 8, 28, 3, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'index',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'index',
}),
'context': <ANY>,
'entity_id': 'sensor.station_c_uv_index',
@@ -1876,12 +1876,12 @@
# name: test_sensors[CC:CC:CC:CC:CC:CC][sensor.station_c_weekly_rain-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'precipitation',
'friendly_name': 'Station C Weekly rain',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'precipitation',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station C Weekly rain',
'last_measured': HAFakeDatetime(2024, 6, 6, 8, 28, 3, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfLength.MILLIMETERS: 'mm'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfLength.MILLIMETERS: 'mm'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_c_weekly_rain',
@@ -1936,12 +1936,12 @@
# name: test_sensors[CC:CC:CC:CC:CC:CC][sensor.station_c_wind_direction-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'wind_direction',
'friendly_name': 'Station C Wind direction',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'wind_direction',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station C Wind direction',
'last_measured': HAFakeDatetime(2024, 6, 6, 8, 28, 3, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT_ANGLE: 'measurement_angle'>,
'unit_of_measurement': '°',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '°',
}),
'context': <ANY>,
'entity_id': 'sensor.station_c_wind_direction',
@@ -1999,12 +1999,12 @@
# name: test_sensors[CC:CC:CC:CC:CC:CC][sensor.station_c_wind_gust-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'wind_speed',
'friendly_name': 'Station C Wind gust',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'wind_speed',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station C Wind gust',
'last_measured': HAFakeDatetime(2024, 6, 6, 8, 28, 3, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_c_wind_gust',
@@ -2062,12 +2062,12 @@
# name: test_sensors[CC:CC:CC:CC:CC:CC][sensor.station_c_wind_speed-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'wind_speed',
'friendly_name': 'Station C Wind speed',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'wind_speed',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station C Wind speed',
'last_measured': HAFakeDatetime(2024, 6, 6, 8, 28, 3, tzinfo=zoneinfo.ZoneInfo(key='US/Pacific')),
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_c_wind_speed',
@@ -2125,11 +2125,11 @@
# name: test_sensors[DD:DD:DD:DD:DD:DD][sensor.station_d_absolute_pressure-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'pressure',
'friendly_name': 'Station D Absolute pressure',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pressure',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station D Absolute pressure',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPressure.HPA: 'hPa'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPressure.HPA: 'hPa'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_d_absolute_pressure',
@@ -2187,11 +2187,11 @@
# name: test_sensors[DD:DD:DD:DD:DD:DD][sensor.station_d_daily_rain-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'precipitation',
'friendly_name': 'Station D Daily rain',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'precipitation',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station D Daily rain',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfLength.MILLIMETERS: 'mm'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfLength.MILLIMETERS: 'mm'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_d_daily_rain',
@@ -2246,11 +2246,11 @@
# name: test_sensors[DD:DD:DD:DD:DD:DD][sensor.station_d_dew_point-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'temperature',
'friendly_name': 'Station D Dew point',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station D Dew point',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_d_dew_point',
@@ -2305,11 +2305,11 @@
# name: test_sensors[DD:DD:DD:DD:DD:DD][sensor.station_d_feels_like-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'temperature',
'friendly_name': 'Station D Feels like',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station D Feels like',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_d_feels_like',
@@ -2367,11 +2367,11 @@
# name: test_sensors[DD:DD:DD:DD:DD:DD][sensor.station_d_hourly_rain-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'precipitation_intensity',
'friendly_name': 'Station D Hourly rain',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'precipitation_intensity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station D Hourly rain',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfVolumetricFlux.MILLIMETERS_PER_HOUR: 'mm/h'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfVolumetricFlux.MILLIMETERS_PER_HOUR: 'mm/h'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_d_hourly_rain',
@@ -2426,11 +2426,11 @@
# name: test_sensors[DD:DD:DD:DD:DD:DD][sensor.station_d_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'humidity',
'friendly_name': 'Station D Humidity',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station D Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.station_d_humidity',
@@ -2485,11 +2485,11 @@
# name: test_sensors[DD:DD:DD:DD:DD:DD][sensor.station_d_irradiance-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'irradiance',
'friendly_name': 'Station D Irradiance',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'irradiance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station D Irradiance',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfIrradiance.WATTS_PER_SQUARE_METER: 'W/m²'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfIrradiance.WATTS_PER_SQUARE_METER: 'W/m²'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_d_irradiance',
@@ -2547,11 +2547,11 @@
# name: test_sensors[DD:DD:DD:DD:DD:DD][sensor.station_d_max_daily_gust-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'wind_speed',
'friendly_name': 'Station D Max daily gust',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'wind_speed',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station D Max daily gust',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_d_max_daily_gust',
@@ -2609,11 +2609,11 @@
# name: test_sensors[DD:DD:DD:DD:DD:DD][sensor.station_d_monthly_rain-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'precipitation',
'friendly_name': 'Station D Monthly rain',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'precipitation',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station D Monthly rain',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfLength.MILLIMETERS: 'mm'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfLength.MILLIMETERS: 'mm'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_d_monthly_rain',
@@ -2671,11 +2671,11 @@
# name: test_sensors[DD:DD:DD:DD:DD:DD][sensor.station_d_relative_pressure-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'pressure',
'friendly_name': 'Station D Relative pressure',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pressure',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station D Relative pressure',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPressure.HPA: 'hPa'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPressure.HPA: 'hPa'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_d_relative_pressure',
@@ -2730,11 +2730,11 @@
# name: test_sensors[DD:DD:DD:DD:DD:DD][sensor.station_d_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'temperature',
'friendly_name': 'Station D Temperature',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station D Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_d_temperature',
@@ -2789,10 +2789,10 @@
# name: test_sensors[DD:DD:DD:DD:DD:DD][sensor.station_d_uv_index-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'friendly_name': 'Station D UV index',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station D UV index',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'index',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'index',
}),
'context': <ANY>,
'entity_id': 'sensor.station_d_uv_index',
@@ -2850,11 +2850,11 @@
# name: test_sensors[DD:DD:DD:DD:DD:DD][sensor.station_d_weekly_rain-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'precipitation',
'friendly_name': 'Station D Weekly rain',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'precipitation',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station D Weekly rain',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfLength.MILLIMETERS: 'mm'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfLength.MILLIMETERS: 'mm'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_d_weekly_rain',
@@ -2909,11 +2909,11 @@
# name: test_sensors[DD:DD:DD:DD:DD:DD][sensor.station_d_wind_direction-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'wind_direction',
'friendly_name': 'Station D Wind direction',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'wind_direction',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station D Wind direction',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT_ANGLE: 'measurement_angle'>,
'unit_of_measurement': '°',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '°',
}),
'context': <ANY>,
'entity_id': 'sensor.station_d_wind_direction',
@@ -2971,11 +2971,11 @@
# name: test_sensors[DD:DD:DD:DD:DD:DD][sensor.station_d_wind_gust-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'wind_speed',
'friendly_name': 'Station D Wind gust',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'wind_speed',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station D Wind gust',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_d_wind_gust',
@@ -3033,11 +3033,11 @@
# name: test_sensors[DD:DD:DD:DD:DD:DD][sensor.station_d_wind_speed-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Data provided by ambientnetwork.net',
'device_class': 'wind_speed',
'friendly_name': 'Station D Wind speed',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Data provided by ambientnetwork.net',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'wind_speed',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Station D Wind speed',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfSpeed.KILOMETERS_PER_HOUR: 'km/h'>,
}),
'context': <ANY>,
'entity_id': 'sensor.station_d_wind_speed',
@@ -41,9 +41,9 @@
# name: test_all_entities[sensor.homeassistant_analytics_core_samba-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Homeassistant Analytics core_samba',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Homeassistant Analytics core_samba',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': 'active installations',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'active installations',
}),
'context': <ANY>,
'entity_id': 'sensor.homeassistant_analytics_core_samba',
@@ -95,9 +95,9 @@
# name: test_all_entities[sensor.homeassistant_analytics_hacs_custom-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Homeassistant Analytics hacs (custom)',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Homeassistant Analytics hacs (custom)',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': 'active installations',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'active installations',
}),
'context': <ANY>,
'entity_id': 'sensor.homeassistant_analytics_hacs_custom',
@@ -149,9 +149,9 @@
# name: test_all_entities[sensor.homeassistant_analytics_myq-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Homeassistant Analytics myq',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Homeassistant Analytics myq',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': 'active installations',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'active installations',
}),
'context': <ANY>,
'entity_id': 'sensor.homeassistant_analytics_myq',
@@ -203,9 +203,9 @@
# name: test_all_entities[sensor.homeassistant_analytics_spotify-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Homeassistant Analytics spotify',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Homeassistant Analytics spotify',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': 'active installations',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'active installations',
}),
'context': <ANY>,
'entity_id': 'sensor.homeassistant_analytics_spotify',
@@ -257,9 +257,9 @@
# name: test_all_entities[sensor.homeassistant_analytics_total_active_installations-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Homeassistant Analytics Total active installations',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Homeassistant Analytics Total active installations',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': 'active installations',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'active installations',
}),
'context': <ANY>,
'entity_id': 'sensor.homeassistant_analytics_total_active_installations',
@@ -311,9 +311,9 @@
# name: test_all_entities[sensor.homeassistant_analytics_total_reported_integrations-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Homeassistant Analytics Total reported integrations',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Homeassistant Analytics Total reported integrations',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': 'active installations',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'active installations',
}),
'context': <ANY>,
'entity_id': 'sensor.homeassistant_analytics_total_reported_integrations',
@@ -365,9 +365,9 @@
# name: test_all_entities[sensor.homeassistant_analytics_youtube-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Homeassistant Analytics YouTube',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Homeassistant Analytics YouTube',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': 'active installations',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'active installations',
}),
'context': <ANY>,
'entity_id': 'sensor.homeassistant_analytics_youtube',
@@ -39,8 +39,8 @@
# name: test_sensor[sensor.testsn_last_meter_reading_processed-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'TESTSN Last meter reading processed',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'TESTSN Last meter reading processed',
}),
'context': <ANY>,
'entity_id': 'sensor.testsn_last_meter_reading_processed',
@@ -95,10 +95,10 @@
# name: test_sensor[sensor.testsn_latest_reading-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'water',
'friendly_name': 'TESTSN Latest reading',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'water',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'TESTSN Latest reading',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfVolume.CUBIC_METERS: 'm³'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfVolume.CUBIC_METERS: 'm³'>,
}),
'context': <ANY>,
'entity_id': 'sensor.testsn_latest_reading',
@@ -148,9 +148,9 @@
# name: test_sensor[sensor.testsn_yesterday_s_sewerage_cost-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'monetary',
'friendly_name': "TESTSN Yesterday's sewerage cost",
'unit_of_measurement': 'GBP',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'monetary',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: "TESTSN Yesterday's sewerage cost",
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'GBP',
}),
'context': <ANY>,
'entity_id': 'sensor.testsn_yesterday_s_sewerage_cost',
@@ -205,10 +205,10 @@
# name: test_sensor[sensor.testsn_yesterday_s_usage-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'water',
'friendly_name': "TESTSN Yesterday's usage",
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'water',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: "TESTSN Yesterday's usage",
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': <UnitOfVolume.LITERS: 'L'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfVolume.LITERS: 'L'>,
}),
'context': <ANY>,
'entity_id': 'sensor.testsn_yesterday_s_usage',
@@ -258,9 +258,9 @@
# name: test_sensor[sensor.testsn_yesterday_s_water_cost-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'monetary',
'friendly_name': "TESTSN Yesterday's water cost",
'unit_of_measurement': 'GBP',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'monetary',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: "TESTSN Yesterday's water cost",
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'GBP',
}),
'context': <ANY>,
'entity_id': 'sensor.testsn_yesterday_s_water_cost',
@@ -46,7 +46,7 @@
# name: test_state[True][select.basement_my_water_heater_hot_water_plus_level-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'My water heater Hot Water+ level',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'My water heater Hot Water+ level',
<SelectEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'off',
'level1',
@@ -44,10 +44,10 @@
# name: test_state[sensor.basement_my_water_heater_energy_usage-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'My water heater Energy usage',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'My water heater Energy usage',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.basement_my_water_heater_energy_usage',
@@ -97,8 +97,8 @@
# name: test_state[sensor.basement_my_water_heater_hot_water_availability-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'My water heater Hot water availability',
'unit_of_measurement': '%',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'My water heater Hot water availability',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.basement_my_water_heater_hot_water_availability',
@@ -44,10 +44,10 @@
'attributes': ReadOnlyDict({
<WaterHeaterStateAttribute.AWAY_MODE: 'away_mode'>: 'off',
<WaterHeaterStateAttribute.CURRENT_TEMPERATURE: 'current_temperature'>: None,
'friendly_name': 'My water heater',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'My water heater',
<WaterHeaterCapabilityAttribute.MAX_TEMP: 'max_temp'>: 130,
<WaterHeaterCapabilityAttribute.MIN_TEMP: 'min_temp'>: 95,
'supported_features': <WaterHeaterEntityFeature: 5>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <WaterHeaterEntityFeature: 5>,
<WaterHeaterStateAttribute.TARGET_TEMP_HIGH: 'target_temp_high'>: None,
<WaterHeaterStateAttribute.TARGET_TEMP_LOW: 'target_temp_low'>: None,
<WaterHeaterStateAttribute.TEMPERATURE: 'temperature'>: 130,
@@ -110,7 +110,7 @@
'attributes': ReadOnlyDict({
<WaterHeaterStateAttribute.AWAY_MODE: 'away_mode'>: 'off',
<WaterHeaterStateAttribute.CURRENT_TEMPERATURE: 'current_temperature'>: None,
'friendly_name': 'My water heater',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'My water heater',
<WaterHeaterCapabilityAttribute.MAX_TEMP: 'max_temp'>: 130,
<WaterHeaterCapabilityAttribute.MIN_TEMP: 'min_temp'>: 95,
<WaterHeaterCapabilityAttribute.OPERATION_LIST: 'operation_list'>: list([
@@ -119,7 +119,7 @@
'heat_pump',
]),
<WaterHeaterStateAttribute.OPERATION_MODE: 'operation_mode'>: 'heat_pump',
'supported_features': <WaterHeaterEntityFeature: 7>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <WaterHeaterEntityFeature: 7>,
<WaterHeaterStateAttribute.TARGET_TEMP_HIGH: 'target_temp_high'>: None,
<WaterHeaterStateAttribute.TARGET_TEMP_LOW: 'target_temp_low'>: None,
<WaterHeaterStateAttribute.TEMPERATURE: 'temperature'>: 130,
@@ -39,7 +39,7 @@
# name: test_binary_sensor[binary_sensor.myups_online_status-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'MyUPS Online status',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Online status',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.myups_online_status',
@@ -39,8 +39,8 @@
# name: test_sensor[sensor.myups_alarm_delay-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'MyUPS Alarm delay',
'unit_of_measurement': <UnitOfTime.SECONDS: 's'>,
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Alarm delay',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTime.SECONDS: 's'>,
}),
'context': <ANY>,
'entity_id': 'sensor.myups_alarm_delay',
@@ -92,10 +92,10 @@
# name: test_sensor[sensor.myups_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'battery',
'friendly_name': 'MyUPS Battery',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'battery',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Battery',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.myups_battery',
@@ -148,9 +148,9 @@
# name: test_sensor[sensor.myups_battery_nominal_voltage-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'voltage',
'friendly_name': 'MyUPS Battery nominal voltage',
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'voltage',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Battery nominal voltage',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfElectricPotential.VOLT: 'V'>,
}),
'context': <ANY>,
'entity_id': 'sensor.myups_battery_nominal_voltage',
@@ -200,7 +200,7 @@
# name: test_sensor[sensor.myups_battery_replaced-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'MyUPS Battery replaced',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Battery replaced',
}),
'context': <ANY>,
'entity_id': 'sensor.myups_battery_replaced',
@@ -250,8 +250,8 @@
# name: test_sensor[sensor.myups_battery_shutdown-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'MyUPS Battery shutdown',
'unit_of_measurement': '%',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Battery shutdown',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.myups_battery_shutdown',
@@ -301,8 +301,8 @@
# name: test_sensor[sensor.myups_battery_timeout-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'MyUPS Battery timeout',
'unit_of_measurement': <UnitOfTime.SECONDS: 's'>,
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Battery timeout',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTime.SECONDS: 's'>,
}),
'context': <ANY>,
'entity_id': 'sensor.myups_battery_timeout',
@@ -357,10 +357,10 @@
# name: test_sensor[sensor.myups_battery_voltage-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'voltage',
'friendly_name': 'MyUPS Battery voltage',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'voltage',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Battery voltage',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfElectricPotential.VOLT: 'V'>,
}),
'context': <ANY>,
'entity_id': 'sensor.myups_battery_voltage',
@@ -410,7 +410,7 @@
# name: test_sensor[sensor.myups_cable_type-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'MyUPS Cable type',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Cable type',
}),
'context': <ANY>,
'entity_id': 'sensor.myups_cable_type',
@@ -460,7 +460,7 @@
# name: test_sensor[sensor.myups_driver-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'MyUPS Driver',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Driver',
}),
'context': <ANY>,
'entity_id': 'sensor.myups_driver',
@@ -515,10 +515,10 @@
# name: test_sensor[sensor.myups_input_voltage-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'voltage',
'friendly_name': 'MyUPS Input voltage',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'voltage',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Input voltage',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfElectricPotential.VOLT: 'V'>,
}),
'context': <ANY>,
'entity_id': 'sensor.myups_input_voltage',
@@ -573,10 +573,10 @@
# name: test_sensor[sensor.myups_internal_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'MyUPS Internal temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Internal temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.myups_internal_temperature',
@@ -626,8 +626,8 @@
# name: test_sensor[sensor.myups_last_self_test-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'MyUPS Last self-test',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Last self-test',
}),
'context': <ANY>,
'entity_id': 'sensor.myups_last_self_test',
@@ -677,7 +677,7 @@
# name: test_sensor[sensor.myups_last_transfer-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'MyUPS Last transfer',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Last transfer',
}),
'context': <ANY>,
'entity_id': 'sensor.myups_last_transfer',
@@ -729,9 +729,9 @@
# name: test_sensor[sensor.myups_load-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'MyUPS Load',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Load',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.myups_load',
@@ -781,8 +781,8 @@
# name: test_sensor[sensor.myups_master_update-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'MyUPS Master update',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Master update',
}),
'context': <ANY>,
'entity_id': 'sensor.myups_master_update',
@@ -832,7 +832,7 @@
# name: test_sensor[sensor.myups_mode-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'MyUPS Mode',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Mode',
}),
'context': <ANY>,
'entity_id': 'sensor.myups_mode',
@@ -885,9 +885,9 @@
# name: test_sensor[sensor.myups_nominal_apparent_power-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'apparent_power',
'friendly_name': 'MyUPS Nominal apparent power',
'unit_of_measurement': <UnitOfApparentPower.VOLT_AMPERE: 'VA'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'apparent_power',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Nominal apparent power',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfApparentPower.VOLT_AMPERE: 'VA'>,
}),
'context': <ANY>,
'entity_id': 'sensor.myups_nominal_apparent_power',
@@ -940,9 +940,9 @@
# name: test_sensor[sensor.myups_nominal_input_voltage-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'voltage',
'friendly_name': 'MyUPS Nominal input voltage',
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'voltage',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Nominal input voltage',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfElectricPotential.VOLT: 'V'>,
}),
'context': <ANY>,
'entity_id': 'sensor.myups_nominal_input_voltage',
@@ -995,9 +995,9 @@
# name: test_sensor[sensor.myups_nominal_output_power-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'power',
'friendly_name': 'MyUPS Nominal output power',
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'power',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Nominal output power',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPower.WATT: 'W'>,
}),
'context': <ANY>,
'entity_id': 'sensor.myups_nominal_output_power',
@@ -1052,10 +1052,10 @@
# name: test_sensor[sensor.myups_output_current-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'current',
'friendly_name': 'MyUPS Output current',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'current',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Output current',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfElectricCurrent.AMPERE: 'A'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfElectricCurrent.AMPERE: 'A'>,
}),
'context': <ANY>,
'entity_id': 'sensor.myups_output_current',
@@ -1105,8 +1105,8 @@
# name: test_sensor[sensor.myups_self_test_interval-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'MyUPS Self-test interval',
'unit_of_measurement': <UnitOfTime.DAYS: 'd'>,
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Self-test interval',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTime.DAYS: 'd'>,
}),
'context': <ANY>,
'entity_id': 'sensor.myups_self_test_interval',
@@ -1156,7 +1156,7 @@
# name: test_sensor[sensor.myups_self_test_result-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'MyUPS Self-test result',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Self-test result',
}),
'context': <ANY>,
'entity_id': 'sensor.myups_self_test_result',
@@ -1206,7 +1206,7 @@
# name: test_sensor[sensor.myups_sensitivity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'MyUPS Sensitivity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Sensitivity',
}),
'context': <ANY>,
'entity_id': 'sensor.myups_sensitivity',
@@ -1256,8 +1256,8 @@
# name: test_sensor[sensor.myups_shutdown_time-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'MyUPS Shutdown time',
'unit_of_measurement': <UnitOfTime.MINUTES: 'min'>,
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Shutdown time',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTime.MINUTES: 'min'>,
}),
'context': <ANY>,
'entity_id': 'sensor.myups_shutdown_time',
@@ -1307,8 +1307,8 @@
# name: test_sensor[sensor.myups_startup_time-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'MyUPS Startup time',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Startup time',
}),
'context': <ANY>,
'entity_id': 'sensor.myups_startup_time',
@@ -1358,7 +1358,7 @@
# name: test_sensor[sensor.myups_status-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'MyUPS Status',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Status',
}),
'context': <ANY>,
'entity_id': 'sensor.myups_status',
@@ -1408,7 +1408,7 @@
# name: test_sensor[sensor.myups_status_flag-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'MyUPS Status flag',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Status flag',
}),
'context': <ANY>,
'entity_id': 'sensor.myups_status_flag',
@@ -1463,10 +1463,10 @@
# name: test_sensor[sensor.myups_time_left-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'duration',
'friendly_name': 'MyUPS Time left',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'duration',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Time left',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTime.MINUTES: 'min'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTime.MINUTES: 'min'>,
}),
'context': <ANY>,
'entity_id': 'sensor.myups_time_left',
@@ -1521,10 +1521,10 @@
# name: test_sensor[sensor.myups_time_on_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'duration',
'friendly_name': 'MyUPS Time on battery',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'duration',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Time on battery',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfTime.SECONDS: 's'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTime.SECONDS: 's'>,
}),
'context': <ANY>,
'entity_id': 'sensor.myups_time_on_battery',
@@ -1579,10 +1579,10 @@
# name: test_sensor[sensor.myups_total_time_on_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'duration',
'friendly_name': 'MyUPS Total time on battery',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'duration',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Total time on battery',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfTime.SECONDS: 's'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTime.SECONDS: 's'>,
}),
'context': <ANY>,
'entity_id': 'sensor.myups_total_time_on_battery',
@@ -1634,7 +1634,7 @@
# name: test_sensor[sensor.myups_transfer_count-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'MyUPS Transfer count',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Transfer count',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
}),
'context': <ANY>,
@@ -1685,8 +1685,8 @@
# name: test_sensor[sensor.myups_transfer_from_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'MyUPS Transfer from battery',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Transfer from battery',
}),
'context': <ANY>,
'entity_id': 'sensor.myups_transfer_from_battery',
@@ -1739,9 +1739,9 @@
# name: test_sensor[sensor.myups_transfer_high-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'voltage',
'friendly_name': 'MyUPS Transfer high',
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'voltage',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Transfer high',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfElectricPotential.VOLT: 'V'>,
}),
'context': <ANY>,
'entity_id': 'sensor.myups_transfer_high',
@@ -1794,9 +1794,9 @@
# name: test_sensor[sensor.myups_transfer_low-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'voltage',
'friendly_name': 'MyUPS Transfer low',
'unit_of_measurement': <UnitOfElectricPotential.VOLT: 'V'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'voltage',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Transfer low',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfElectricPotential.VOLT: 'V'>,
}),
'context': <ANY>,
'entity_id': 'sensor.myups_transfer_low',
@@ -1846,8 +1846,8 @@
# name: test_sensor[sensor.myups_transfer_to_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'MyUPS Transfer to battery',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'MyUPS Transfer to battery',
}),
'context': <ANY>,
'entity_id': 'sensor.myups_transfer_to_battery',
@@ -39,8 +39,8 @@
# name: test_all_entities[binary_sensor.mock_title_dc_1_short_circuit_error_status-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Mock Title DC 1 short circuit error status',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title DC 1 short circuit error status',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.mock_title_dc_1_short_circuit_error_status',
@@ -90,8 +90,8 @@
# name: test_all_entities[binary_sensor.mock_title_dc_2_short_circuit_error_status-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Mock Title DC 2 short circuit error status',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title DC 2 short circuit error status',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.mock_title_dc_2_short_circuit_error_status',
@@ -141,8 +141,8 @@
# name: test_all_entities[binary_sensor.mock_title_off_grid_status-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Mock Title Off-grid status',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Off-grid status',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.mock_title_off_grid_status',
@@ -192,8 +192,8 @@
# name: test_all_entities[binary_sensor.mock_title_output_fault_status-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Mock Title Output fault status',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Output fault status',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.mock_title_output_fault_status',
@@ -44,13 +44,13 @@
# name: test_all_entities[number.mock_title_max_output-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'power',
'friendly_name': 'Mock Title Max output',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'power',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Max output',
<NumberEntityCapabilityAttribute.MAX: 'max'>: 1000,
<NumberEntityCapabilityAttribute.MIN: 'min'>: 0,
<NumberEntityCapabilityAttribute.MODE: 'mode'>: <NumberMode.BOX: 'box'>,
<NumberEntityCapabilityAttribute.STEP: 'step'>: 1,
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPower.WATT: 'W'>,
}),
'context': <ANY>,
'entity_id': 'number.mock_title_max_output',
@@ -44,10 +44,10 @@
# name: test_all_entities[sensor.mock_title_lifetime_production_of_p1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Mock Title Lifetime production of P1',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Lifetime production of P1',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.mock_title_lifetime_production_of_p1',
@@ -102,10 +102,10 @@
# name: test_all_entities[sensor.mock_title_lifetime_production_of_p2-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Mock Title Lifetime production of P2',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Lifetime production of P2',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.mock_title_lifetime_production_of_p2',
@@ -160,10 +160,10 @@
# name: test_all_entities[sensor.mock_title_power_of_p1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'power',
'friendly_name': 'Mock Title Power of P1',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'power',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Power of P1',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPower.WATT: 'W'>,
}),
'context': <ANY>,
'entity_id': 'sensor.mock_title_power_of_p1',
@@ -218,10 +218,10 @@
# name: test_all_entities[sensor.mock_title_power_of_p2-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'power',
'friendly_name': 'Mock Title Power of P2',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'power',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Power of P2',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPower.WATT: 'W'>,
}),
'context': <ANY>,
'entity_id': 'sensor.mock_title_power_of_p2',
@@ -276,10 +276,10 @@
# name: test_all_entities[sensor.mock_title_production_of_today-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Mock Title Production of today',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Production of today',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.mock_title_production_of_today',
@@ -334,10 +334,10 @@
# name: test_all_entities[sensor.mock_title_production_of_today_from_p1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Mock Title Production of today from P1',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Production of today from P1',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.mock_title_production_of_today_from_p1',
@@ -392,10 +392,10 @@
# name: test_all_entities[sensor.mock_title_production_of_today_from_p2-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Mock Title Production of today from P2',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Production of today from P2',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.mock_title_production_of_today_from_p2',
@@ -450,10 +450,10 @@
# name: test_all_entities[sensor.mock_title_total_lifetime_production-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Mock Title Total lifetime production',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Total lifetime production',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.mock_title_total_lifetime_production',
@@ -508,10 +508,10 @@
# name: test_all_entities[sensor.mock_title_total_power-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'power',
'friendly_name': 'Mock Title Total power',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'power',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Total power',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPower.WATT: 'W'>,
}),
'context': <ANY>,
'entity_id': 'sensor.mock_title_total_power',
@@ -39,8 +39,8 @@
# name: test_all_entities[switch.mock_title_inverter_status-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'switch',
'friendly_name': 'Mock Title Inverter status',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'switch',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Inverter status',
}),
'context': <ANY>,
'entity_id': 'switch.mock_title_inverter_status',
@@ -39,9 +39,9 @@
# name: test_sensors[sensor.aquacell_name_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'battery',
'friendly_name': 'AquaCell name Battery',
'unit_of_measurement': '%',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'battery',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaCell name Battery',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.aquacell_name_battery',
@@ -91,8 +91,8 @@
# name: test_sensors[sensor.aquacell_name_last_update-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'AquaCell name Last update',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaCell name Last update',
}),
'context': <ANY>,
'entity_id': 'sensor.aquacell_name_last_update',
@@ -144,9 +144,9 @@
# name: test_sensors[sensor.aquacell_name_salt_left_side_percentage-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AquaCell name Salt left side percentage',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaCell name Salt left side percentage',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.aquacell_name_salt_left_side_percentage',
@@ -199,9 +199,9 @@
# name: test_sensors[sensor.aquacell_name_salt_left_side_time_remaining-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'duration',
'friendly_name': 'AquaCell name Salt left side time remaining',
'unit_of_measurement': <UnitOfTime.DAYS: 'd'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'duration',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaCell name Salt left side time remaining',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTime.DAYS: 'd'>,
}),
'context': <ANY>,
'entity_id': 'sensor.aquacell_name_salt_left_side_time_remaining',
@@ -253,9 +253,9 @@
# name: test_sensors[sensor.aquacell_name_salt_right_side_percentage-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AquaCell name Salt right side percentage',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaCell name Salt right side percentage',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.aquacell_name_salt_right_side_percentage',
@@ -308,9 +308,9 @@
# name: test_sensors[sensor.aquacell_name_salt_right_side_time_remaining-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'duration',
'friendly_name': 'AquaCell name Salt right side time remaining',
'unit_of_measurement': <UnitOfTime.DAYS: 'd'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'duration',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaCell name Salt right side time remaining',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTime.DAYS: 'd'>,
}),
'context': <ANY>,
'entity_id': 'sensor.aquacell_name_salt_right_side_time_remaining',
@@ -366,8 +366,8 @@
# name: test_sensors[sensor.aquacell_name_wi_fi_strength-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'AquaCell name Wi-Fi strength',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaCell name Wi-Fi strength',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'high',
'medium',
@@ -3,9 +3,9 @@
dict({
'sensor.aqualogic_air_temperature': StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'AquaLogic Air Temperature',
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Air Temperature',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.aqualogic_air_temperature',
@@ -16,9 +16,9 @@
}),
'sensor.aqualogic_pool_chlorinator': StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AquaLogic Pool Chlorinator',
'icon': 'mdi:gauge',
'unit_of_measurement': '%',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Pool Chlorinator',
<EntityStateAttribute.ICON: 'icon'>: 'mdi:gauge',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.aqualogic_pool_chlorinator',
@@ -29,10 +29,10 @@
}),
'sensor.aqualogic_pool_temperature': StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'AquaLogic Pool Temperature',
'icon': 'mdi:oil-temperature',
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Pool Temperature',
<EntityStateAttribute.ICON: 'icon'>: 'mdi:oil-temperature',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.aqualogic_pool_temperature',
@@ -43,9 +43,9 @@
}),
'sensor.aqualogic_pump_power': StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'power',
'friendly_name': 'AquaLogic Pump Power',
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'power',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Pump Power',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPower.WATT: 'W'>,
}),
'context': <ANY>,
'entity_id': 'sensor.aqualogic_pump_power',
@@ -56,9 +56,9 @@
}),
'sensor.aqualogic_pump_speed': StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AquaLogic Pump Speed',
'icon': 'mdi:speedometer',
'unit_of_measurement': '%',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Pump Speed',
<EntityStateAttribute.ICON: 'icon'>: 'mdi:speedometer',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.aqualogic_pump_speed',
@@ -69,9 +69,9 @@
}),
'sensor.aqualogic_salt_level': StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AquaLogic Salt Level',
'icon': 'mdi:gauge',
'unit_of_measurement': 'g/L',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Salt Level',
<EntityStateAttribute.ICON: 'icon'>: 'mdi:gauge',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'g/L',
}),
'context': <ANY>,
'entity_id': 'sensor.aqualogic_salt_level',
@@ -82,9 +82,9 @@
}),
'sensor.aqualogic_spa_chlorinator': StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AquaLogic Spa Chlorinator',
'icon': 'mdi:gauge',
'unit_of_measurement': '%',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Spa Chlorinator',
<EntityStateAttribute.ICON: 'icon'>: 'mdi:gauge',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.aqualogic_spa_chlorinator',
@@ -95,10 +95,10 @@
}),
'sensor.aqualogic_spa_temperature': StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'AquaLogic Spa Temperature',
'icon': 'mdi:oil-temperature',
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Spa Temperature',
<EntityStateAttribute.ICON: 'icon'>: 'mdi:oil-temperature',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.aqualogic_spa_temperature',
@@ -109,8 +109,8 @@
}),
'sensor.aqualogic_status': StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AquaLogic Status',
'icon': 'mdi:alert',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Status',
<EntityStateAttribute.ICON: 'icon'>: 'mdi:alert',
}),
'context': <ANY>,
'entity_id': 'sensor.aqualogic_status',
@@ -3,7 +3,7 @@
dict({
'switch.aqualogic_aux_1': StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AquaLogic Aux 1',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Aux 1',
}),
'context': <ANY>,
'entity_id': 'switch.aqualogic_aux_1',
@@ -14,7 +14,7 @@
}),
'switch.aqualogic_aux_2': StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AquaLogic Aux 2',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Aux 2',
}),
'context': <ANY>,
'entity_id': 'switch.aqualogic_aux_2',
@@ -25,7 +25,7 @@
}),
'switch.aqualogic_aux_3': StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AquaLogic Aux 3',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Aux 3',
}),
'context': <ANY>,
'entity_id': 'switch.aqualogic_aux_3',
@@ -36,7 +36,7 @@
}),
'switch.aqualogic_aux_4': StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AquaLogic Aux 4',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Aux 4',
}),
'context': <ANY>,
'entity_id': 'switch.aqualogic_aux_4',
@@ -47,7 +47,7 @@
}),
'switch.aqualogic_aux_5': StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AquaLogic Aux 5',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Aux 5',
}),
'context': <ANY>,
'entity_id': 'switch.aqualogic_aux_5',
@@ -58,7 +58,7 @@
}),
'switch.aqualogic_aux_6': StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AquaLogic Aux 6',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Aux 6',
}),
'context': <ANY>,
'entity_id': 'switch.aqualogic_aux_6',
@@ -69,7 +69,7 @@
}),
'switch.aqualogic_aux_7': StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AquaLogic Aux 7',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Aux 7',
}),
'context': <ANY>,
'entity_id': 'switch.aqualogic_aux_7',
@@ -80,7 +80,7 @@
}),
'switch.aqualogic_filter': StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AquaLogic Filter',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Filter',
}),
'context': <ANY>,
'entity_id': 'switch.aqualogic_filter',
@@ -91,7 +91,7 @@
}),
'switch.aqualogic_filter_low_speed': StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AquaLogic Filter Low Speed',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Filter Low Speed',
}),
'context': <ANY>,
'entity_id': 'switch.aqualogic_filter_low_speed',
@@ -102,7 +102,7 @@
}),
'switch.aqualogic_lights': StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'AquaLogic Lights',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'AquaLogic Lights',
}),
'context': <ANY>,
'entity_id': 'switch.aqualogic_lights',
@@ -44,10 +44,10 @@
# name: test_sensor_snapshot[sensor.device_1_available_volume-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'volume_storage',
'friendly_name': 'Device 1 Available volume',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'volume_storage',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Device 1 Available volume',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfVolume.LITERS: 'L'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfVolume.LITERS: 'L'>,
}),
'context': <ANY>,
'entity_id': 'sensor.device_1_available_volume',
@@ -102,10 +102,10 @@
# name: test_sensor_snapshot[sensor.device_1_ground_water_level-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'distance',
'friendly_name': 'Device 1 Ground water level',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'distance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Device 1 Ground water level',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfLength.METERS: 'm'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfLength.METERS: 'm'>,
}),
'context': <ANY>,
'entity_id': 'sensor.device_1_ground_water_level',
@@ -160,10 +160,10 @@
# name: test_sensor_snapshot[sensor.device_1_inflow-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'volume_flow_rate',
'friendly_name': 'Device 1 Inflow',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'volume_flow_rate',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Device 1 Inflow',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfVolumeFlowRate.LITERS_PER_HOUR: 'L/h'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfVolumeFlowRate.LITERS_PER_HOUR: 'L/h'>,
}),
'context': <ANY>,
'entity_id': 'sensor.device_1_inflow',
@@ -218,10 +218,10 @@
# name: test_sensor_snapshot[sensor.device_1_level_from_sensor-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'distance',
'friendly_name': 'Device 1 Level from sensor',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'distance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Device 1 Level from sensor',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfLength.METERS: 'm'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfLength.METERS: 'm'>,
}),
'context': <ANY>,
'entity_id': 'sensor.device_1_level_from_sensor',
@@ -276,10 +276,10 @@
# name: test_sensor_snapshot[sensor.device_1_level_from_top-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'distance',
'friendly_name': 'Device 1 Level from top',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'distance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Device 1 Level from top',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfLength.METERS: 'm'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfLength.METERS: 'm'>,
}),
'context': <ANY>,
'entity_id': 'sensor.device_1_level_from_top',
@@ -334,10 +334,10 @@
# name: test_sensor_snapshot[sensor.device_1_outflow-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'water',
'friendly_name': 'Device 1 Outflow',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'water',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Device 1 Outflow',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfVolume.LITERS: 'L'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfVolume.LITERS: 'L'>,
}),
'context': <ANY>,
'entity_id': 'sensor.device_1_outflow',
@@ -392,10 +392,10 @@
# name: test_sensor_snapshot[sensor.device_1_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Device 1 Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Device 1 Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.device_1_temperature',
@@ -450,10 +450,10 @@
# name: test_sensor_snapshot[sensor.device_2_available_volume-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'volume_storage',
'friendly_name': 'Device 2 Available volume',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'volume_storage',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Device 2 Available volume',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfVolume.LITERS: 'L'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfVolume.LITERS: 'L'>,
}),
'context': <ANY>,
'entity_id': 'sensor.device_2_available_volume',
@@ -508,10 +508,10 @@
# name: test_sensor_snapshot[sensor.device_2_ground_water_level-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'distance',
'friendly_name': 'Device 2 Ground water level',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'distance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Device 2 Ground water level',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfLength.METERS: 'm'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfLength.METERS: 'm'>,
}),
'context': <ANY>,
'entity_id': 'sensor.device_2_ground_water_level',
@@ -566,10 +566,10 @@
# name: test_sensor_snapshot[sensor.device_2_inflow-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'volume_flow_rate',
'friendly_name': 'Device 2 Inflow',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'volume_flow_rate',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Device 2 Inflow',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfVolumeFlowRate.LITERS_PER_HOUR: 'L/h'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfVolumeFlowRate.LITERS_PER_HOUR: 'L/h'>,
}),
'context': <ANY>,
'entity_id': 'sensor.device_2_inflow',
@@ -624,10 +624,10 @@
# name: test_sensor_snapshot[sensor.device_2_level_from_sensor-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'distance',
'friendly_name': 'Device 2 Level from sensor',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'distance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Device 2 Level from sensor',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfLength.METERS: 'm'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfLength.METERS: 'm'>,
}),
'context': <ANY>,
'entity_id': 'sensor.device_2_level_from_sensor',
@@ -682,10 +682,10 @@
# name: test_sensor_snapshot[sensor.device_2_level_from_top-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'distance',
'friendly_name': 'Device 2 Level from top',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'distance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Device 2 Level from top',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfLength.METERS: 'm'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfLength.METERS: 'm'>,
}),
'context': <ANY>,
'entity_id': 'sensor.device_2_level_from_top',
@@ -740,10 +740,10 @@
# name: test_sensor_snapshot[sensor.device_2_outflow-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'water',
'friendly_name': 'Device 2 Outflow',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'water',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Device 2 Outflow',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfVolume.LITERS: 'L'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfVolume.LITERS: 'L'>,
}),
'context': <ANY>,
'entity_id': 'sensor.device_2_outflow',
@@ -798,10 +798,10 @@
# name: test_sensor_snapshot[sensor.device_2_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Device 2 Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Device 2 Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.device_2_temperature',
@@ -39,7 +39,7 @@
# name: test_setup[binary_sensor.arcam_fmj_127_0_0_1_incoming_video_interlaced-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Arcam FMJ (127.0.0.1) Incoming video interlaced',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Incoming video interlaced',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.arcam_fmj_127_0_0_1_incoming_video_interlaced',
@@ -89,7 +89,7 @@
# name: test_setup[binary_sensor.arcam_fmj_127_0_0_1_zone_2_incoming_video_interlaced-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Arcam FMJ (127.0.0.1) Zone 2 Incoming video interlaced',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Zone 2 Incoming video interlaced',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.arcam_fmj_127_0_0_1_zone_2_incoming_video_interlaced',
@@ -40,8 +40,8 @@
# name: test_setup[media_player.arcam_fmj_127_0_0_1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Arcam FMJ (127.0.0.1)',
'supported_features': <MediaPlayerEntityFeature: 200588>,
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1)',
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 200588>,
<MediaPlayerEntityStateAttribute.MEDIA_VOLUME_LEVEL: 'volume_level'>: 0.0,
}),
'context': <ANY>,
@@ -93,8 +93,8 @@
# name: test_setup[media_player.arcam_fmj_127_0_0_1_zone_2-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Arcam FMJ (127.0.0.1) Zone 2',
'supported_features': <MediaPlayerEntityFeature: 135052>,
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Zone 2',
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 135052>,
<MediaPlayerEntityStateAttribute.MEDIA_VOLUME_LEVEL: 'volume_level'>: 0.0,
}),
'context': <ANY>,
@@ -85,8 +85,8 @@
# name: test_setup[sensor.arcam_fmj_127_0_0_1_incoming_audio_configuration-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'Arcam FMJ (127.0.0.1) Incoming audio configuration',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Incoming audio configuration',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'dual_mono',
'mono',
@@ -208,8 +208,8 @@
# name: test_setup[sensor.arcam_fmj_127_0_0_1_incoming_audio_format-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'Arcam FMJ (127.0.0.1) Incoming audio format',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Incoming audio format',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'pcm',
'analogue_direct',
@@ -290,10 +290,10 @@
# name: test_setup[sensor.arcam_fmj_127_0_0_1_incoming_audio_sample_rate-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'frequency',
'friendly_name': 'Arcam FMJ (127.0.0.1) Incoming audio sample rate',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'frequency',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Incoming audio sample rate',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfFrequency.HERTZ: 'Hz'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfFrequency.HERTZ: 'Hz'>,
}),
'context': <ANY>,
'entity_id': 'sensor.arcam_fmj_127_0_0_1_incoming_audio_sample_rate',
@@ -349,8 +349,8 @@
# name: test_setup[sensor.arcam_fmj_127_0_0_1_incoming_video_aspect_ratio-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'Arcam FMJ (127.0.0.1) Incoming video aspect ratio',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Incoming video aspect ratio',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'undefined',
'aspect_4_3',
@@ -413,8 +413,8 @@
# name: test_setup[sensor.arcam_fmj_127_0_0_1_incoming_video_colorspace-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'Arcam FMJ (127.0.0.1) Incoming video colorspace',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Incoming video colorspace',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'normal',
'hdr10',
@@ -476,9 +476,9 @@
# name: test_setup[sensor.arcam_fmj_127_0_0_1_incoming_video_horizontal_resolution-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Arcam FMJ (127.0.0.1) Incoming video horizontal resolution',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Incoming video horizontal resolution',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'px',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'px',
}),
'context': <ANY>,
'entity_id': 'sensor.arcam_fmj_127_0_0_1_incoming_video_horizontal_resolution',
@@ -533,10 +533,10 @@
# name: test_setup[sensor.arcam_fmj_127_0_0_1_incoming_video_refresh_rate-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'frequency',
'friendly_name': 'Arcam FMJ (127.0.0.1) Incoming video refresh rate',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'frequency',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Incoming video refresh rate',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfFrequency.HERTZ: 'Hz'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfFrequency.HERTZ: 'Hz'>,
}),
'context': <ANY>,
'entity_id': 'sensor.arcam_fmj_127_0_0_1_incoming_video_refresh_rate',
@@ -591,9 +591,9 @@
# name: test_setup[sensor.arcam_fmj_127_0_0_1_incoming_video_vertical_resolution-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Arcam FMJ (127.0.0.1) Incoming video vertical resolution',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Incoming video vertical resolution',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'px',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'px',
}),
'context': <ANY>,
'entity_id': 'sensor.arcam_fmj_127_0_0_1_incoming_video_vertical_resolution',
@@ -689,8 +689,8 @@
# name: test_setup[sensor.arcam_fmj_127_0_0_1_zone_2_incoming_audio_configuration-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'Arcam FMJ (127.0.0.1) Zone 2 Incoming audio configuration',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Zone 2 Incoming audio configuration',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'dual_mono',
'mono',
@@ -812,8 +812,8 @@
# name: test_setup[sensor.arcam_fmj_127_0_0_1_zone_2_incoming_audio_format-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'Arcam FMJ (127.0.0.1) Zone 2 Incoming audio format',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Zone 2 Incoming audio format',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'pcm',
'analogue_direct',
@@ -894,10 +894,10 @@
# name: test_setup[sensor.arcam_fmj_127_0_0_1_zone_2_incoming_audio_sample_rate-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'frequency',
'friendly_name': 'Arcam FMJ (127.0.0.1) Zone 2 Incoming audio sample rate',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'frequency',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Zone 2 Incoming audio sample rate',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfFrequency.HERTZ: 'Hz'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfFrequency.HERTZ: 'Hz'>,
}),
'context': <ANY>,
'entity_id': 'sensor.arcam_fmj_127_0_0_1_zone_2_incoming_audio_sample_rate',
@@ -953,8 +953,8 @@
# name: test_setup[sensor.arcam_fmj_127_0_0_1_zone_2_incoming_video_aspect_ratio-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'Arcam FMJ (127.0.0.1) Zone 2 Incoming video aspect ratio',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Zone 2 Incoming video aspect ratio',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'undefined',
'aspect_4_3',
@@ -1017,8 +1017,8 @@
# name: test_setup[sensor.arcam_fmj_127_0_0_1_zone_2_incoming_video_colorspace-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'Arcam FMJ (127.0.0.1) Zone 2 Incoming video colorspace',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Zone 2 Incoming video colorspace',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'normal',
'hdr10',
@@ -1080,9 +1080,9 @@
# name: test_setup[sensor.arcam_fmj_127_0_0_1_zone_2_incoming_video_horizontal_resolution-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Arcam FMJ (127.0.0.1) Zone 2 Incoming video horizontal resolution',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Zone 2 Incoming video horizontal resolution',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'px',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'px',
}),
'context': <ANY>,
'entity_id': 'sensor.arcam_fmj_127_0_0_1_zone_2_incoming_video_horizontal_resolution',
@@ -1137,10 +1137,10 @@
# name: test_setup[sensor.arcam_fmj_127_0_0_1_zone_2_incoming_video_refresh_rate-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'frequency',
'friendly_name': 'Arcam FMJ (127.0.0.1) Zone 2 Incoming video refresh rate',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'frequency',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Zone 2 Incoming video refresh rate',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfFrequency.HERTZ: 'Hz'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfFrequency.HERTZ: 'Hz'>,
}),
'context': <ANY>,
'entity_id': 'sensor.arcam_fmj_127_0_0_1_zone_2_incoming_video_refresh_rate',
@@ -1195,9 +1195,9 @@
# name: test_setup[sensor.arcam_fmj_127_0_0_1_zone_2_incoming_video_vertical_resolution-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Arcam FMJ (127.0.0.1) Zone 2 Incoming video vertical resolution',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Arcam FMJ (127.0.0.1) Zone 2 Incoming video vertical resolution',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'px',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'px',
}),
'context': <ANY>,
'entity_id': 'sensor.arcam_fmj_127_0_0_1_zone_2_incoming_video_vertical_resolution',
@@ -278,8 +278,8 @@
# name: test_sensors[test_sensor_air_quality_index]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'aqi',
'friendly_name': 'Test Sensor Air quality index',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'aqi',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Sensor Air quality index',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
}),
'context': <ANY>,
@@ -293,10 +293,10 @@
# name: test_sensors[test_sensor_carbon_dioxide]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'carbon_dioxide',
'friendly_name': 'Test Sensor Carbon dioxide',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'carbon_dioxide',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Sensor Carbon dioxide',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppm',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppm',
}),
'context': <ANY>,
'entity_id': 'sensor.test_sensor_carbon_dioxide',
@@ -309,10 +309,10 @@
# name: test_sensors[test_sensor_humidity]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'humidity',
'friendly_name': 'Test Sensor Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Sensor Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.test_sensor_humidity',
@@ -325,10 +325,10 @@
# name: test_sensors[test_sensor_pm10]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'pm10',
'friendly_name': 'Test Sensor PM10',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm10',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Sensor PM10',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.test_sensor_pm10',
@@ -341,10 +341,10 @@
# name: test_sensors[test_sensor_pm2_5]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'pm25',
'friendly_name': 'Test Sensor PM2.5',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm25',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Sensor PM2.5',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.test_sensor_pm2_5',
@@ -357,10 +357,10 @@
# name: test_sensors[test_sensor_temperature]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Test Sensor Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Sensor Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.test_sensor_temperature',
@@ -373,7 +373,7 @@
# name: test_sensors[test_sensor_total_volatile_organic_compounds]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Test Sensor Total volatile organic compounds',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Sensor Total volatile organic compounds',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
}),
'context': <ANY>,
@@ -44,10 +44,10 @@
# name: test_all_sensors[sensor.battery_charged_month-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Battery Charged month',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Battery Charged month',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.battery_charged_month',
@@ -102,10 +102,10 @@
# name: test_all_sensors[sensor.battery_charged_today-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Battery Charged today',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Battery Charged today',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.battery_charged_today',
@@ -160,10 +160,10 @@
# name: test_all_sensors[sensor.battery_charged_total-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Battery Charged total',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Battery Charged total',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.battery_charged_total',
@@ -218,10 +218,10 @@
# name: test_all_sensors[sensor.battery_discharged_month-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Battery Discharged month',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Battery Discharged month',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.battery_discharged_month',
@@ -276,10 +276,10 @@
# name: test_all_sensors[sensor.battery_discharged_today-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Battery Discharged today',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Battery Discharged today',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.battery_discharged_today',
@@ -334,10 +334,10 @@
# name: test_all_sensors[sensor.battery_discharged_total-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Battery Discharged total',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Battery Discharged total',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.battery_discharged_total',
@@ -392,10 +392,10 @@
# name: test_all_sensors[sensor.battery_flow_now-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'power',
'friendly_name': 'Battery Flow now',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'power',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Battery Flow now',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPower.WATT: 'W'>,
}),
'context': <ANY>,
'entity_id': 'sensor.battery_flow_now',
@@ -447,10 +447,10 @@
# name: test_all_sensors[sensor.battery_state_of_charge-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'battery',
'friendly_name': 'Battery State of charge',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'battery',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Battery State of charge',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.battery_state_of_charge',
@@ -505,10 +505,10 @@
# name: test_all_sensors[sensor.inverter_test_serial_1_energy_ac_output_total-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Inverter test-serial-1 Energy AC output total',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Inverter test-serial-1 Energy AC output total',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.inverter_test_serial_1_energy_ac_output_total',
@@ -563,10 +563,10 @@
# name: test_all_sensors[sensor.inverter_test_serial_1_power_ac_output-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'power',
'friendly_name': 'Inverter test-serial-1 Power AC output',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'power',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Inverter test-serial-1 Power AC output',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPower.WATT: 'W'>,
}),
'context': <ANY>,
'entity_id': 'sensor.inverter_test_serial_1_power_ac_output',
@@ -621,10 +621,10 @@
# name: test_all_sensors[sensor.inverter_test_serial_2_energy_ac_output_total-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Inverter test-serial-2 Energy AC output total',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Inverter test-serial-2 Energy AC output total',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.inverter_test_serial_2_energy_ac_output_total',
@@ -679,10 +679,10 @@
# name: test_all_sensors[sensor.inverter_test_serial_2_power_ac_output-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'power',
'friendly_name': 'Inverter test-serial-2 Power AC output',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'power',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Inverter test-serial-2 Power AC output',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPower.WATT: 'W'>,
}),
'context': <ANY>,
'entity_id': 'sensor.inverter_test_serial_2_power_ac_output',
@@ -737,10 +737,10 @@
# name: test_all_sensors[sensor.solar_energy_production_month-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Solar Energy production month',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Solar Energy production month',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.solar_energy_production_month',
@@ -795,10 +795,10 @@
# name: test_all_sensors[sensor.solar_energy_production_today-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Solar Energy production today',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Solar Energy production today',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.solar_energy_production_today',
@@ -853,10 +853,10 @@
# name: test_all_sensors[sensor.solar_energy_production_total-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Solar Energy production total',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'energy',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Solar Energy production total',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}),
'context': <ANY>,
'entity_id': 'sensor.solar_energy_production_total',
@@ -911,10 +911,10 @@
# name: test_all_sensors[sensor.solar_power_production-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'power',
'friendly_name': 'Solar Power production',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'power',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Solar Power production',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfPower.WATT: 'W'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfPower.WATT: 'W'>,
}),
'context': <ANY>,
'entity_id': 'sensor.solar_power_production',
@@ -41,9 +41,9 @@
# name: test_all_entities[device_tracker.test_vehicle-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Test Vehicle',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Test Vehicle',
<TrackerEntityStateAttribute.GPS_ACCURACY: 'gps_accuracy'>: 6.0,
'icon': 'mdi:car',
<EntityStateAttribute.ICON: 'icon'>: 'mdi:car',
<DeviceTrackerEntityStateAttribute.IN_ZONES: 'in_zones'>: list([
]),
<TrackerEntityStateAttribute.LATITUDE: 'latitude'>: 50.1109221,
+154 -154
View File
@@ -41,12 +41,12 @@
# name: test_awair_gen1_sensors[sensor.living_room_carbon_dioxide-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 0.0,
'device_class': 'carbon_dioxide',
'friendly_name': 'Living Room Carbon dioxide',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'carbon_dioxide',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Carbon dioxide',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppm',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppm',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_carbon_dioxide',
@@ -98,12 +98,12 @@
# name: test_awair_gen1_sensors[sensor.living_room_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 0.0,
'device_class': 'humidity',
'friendly_name': 'Living Room Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_humidity',
@@ -155,12 +155,12 @@
# name: test_awair_gen1_sensors[sensor.living_room_pm10-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 1.0,
'device_class': 'pm10',
'friendly_name': 'Living Room PM10',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm10',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room PM10',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_pm10',
@@ -212,12 +212,12 @@
# name: test_awair_gen1_sensors[sensor.living_room_pm2_5-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 1.0,
'device_class': 'pm25',
'friendly_name': 'Living Room PM2.5',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm25',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room PM2.5',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_pm2_5',
@@ -269,10 +269,10 @@
# name: test_awair_gen1_sensors[sensor.living_room_score-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
'friendly_name': 'Living Room Score',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Score',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_score',
@@ -327,12 +327,12 @@
# name: test_awair_gen1_sensors[sensor.living_room_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 1.0,
'device_class': 'temperature',
'friendly_name': 'Living Room Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_temperature',
@@ -384,12 +384,12 @@
# name: test_awair_gen1_sensors[sensor.living_room_volatile_organic_compounds_parts-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 1.0,
'device_class': 'volatile_organic_compounds_parts',
'friendly_name': 'Living Room Volatile organic compounds parts',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'volatile_organic_compounds_parts',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Volatile organic compounds parts',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppb',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppb',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_volatile_organic_compounds_parts',
@@ -441,12 +441,12 @@
# name: test_awair_gen2_sensors[sensor.living_room_carbon_dioxide-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 0.0,
'device_class': 'carbon_dioxide',
'friendly_name': 'Living Room Carbon dioxide',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'carbon_dioxide',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Carbon dioxide',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppm',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppm',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_carbon_dioxide',
@@ -498,12 +498,12 @@
# name: test_awair_gen2_sensors[sensor.living_room_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 1.0,
'device_class': 'humidity',
'friendly_name': 'Living Room Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_humidity',
@@ -555,12 +555,12 @@
# name: test_awair_gen2_sensors[sensor.living_room_pm2_5-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 0.0,
'device_class': 'pm25',
'friendly_name': 'Living Room PM2.5',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm25',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room PM2.5',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_pm2_5',
@@ -612,10 +612,10 @@
# name: test_awair_gen2_sensors[sensor.living_room_score-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
'friendly_name': 'Living Room Score',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Score',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_score',
@@ -670,12 +670,12 @@
# name: test_awair_gen2_sensors[sensor.living_room_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 0.0,
'device_class': 'temperature',
'friendly_name': 'Living Room Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_temperature',
@@ -727,12 +727,12 @@
# name: test_awair_gen2_sensors[sensor.living_room_volatile_organic_compounds_parts-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 0.0,
'device_class': 'volatile_organic_compounds_parts',
'friendly_name': 'Living Room Volatile organic compounds parts',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'volatile_organic_compounds_parts',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Volatile organic compounds parts',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppb',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppb',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_volatile_organic_compounds_parts',
@@ -784,12 +784,12 @@
# name: test_awair_glow_sensors[sensor.living_room_carbon_dioxide-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 0.0,
'device_class': 'carbon_dioxide',
'friendly_name': 'Living Room Carbon dioxide',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'carbon_dioxide',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Carbon dioxide',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppm',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppm',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_carbon_dioxide',
@@ -841,12 +841,12 @@
# name: test_awair_glow_sensors[sensor.living_room_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 0.0,
'device_class': 'humidity',
'friendly_name': 'Living Room Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_humidity',
@@ -898,10 +898,10 @@
# name: test_awair_glow_sensors[sensor.living_room_score-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
'friendly_name': 'Living Room Score',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Score',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_score',
@@ -956,12 +956,12 @@
# name: test_awair_glow_sensors[sensor.living_room_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 1.0,
'device_class': 'temperature',
'friendly_name': 'Living Room Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_temperature',
@@ -1013,12 +1013,12 @@
# name: test_awair_glow_sensors[sensor.living_room_volatile_organic_compounds_parts-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 0.0,
'device_class': 'volatile_organic_compounds_parts',
'friendly_name': 'Living Room Volatile organic compounds parts',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'volatile_organic_compounds_parts',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Volatile organic compounds parts',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppb',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppb',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_volatile_organic_compounds_parts',
@@ -1070,12 +1070,12 @@
# name: test_awair_mint_sensors[sensor.living_room_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 0.0,
'device_class': 'humidity',
'friendly_name': 'Living Room Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_humidity',
@@ -1127,11 +1127,11 @@
# name: test_awair_mint_sensors[sensor.living_room_illuminance-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
'device_class': 'illuminance',
'friendly_name': 'Living Room Illuminance',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'illuminance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Illuminance',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'lx',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'lx',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_illuminance',
@@ -1183,12 +1183,12 @@
# name: test_awair_mint_sensors[sensor.living_room_pm2_5-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 0.0,
'device_class': 'pm25',
'friendly_name': 'Living Room PM2.5',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm25',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room PM2.5',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_pm2_5',
@@ -1240,10 +1240,10 @@
# name: test_awair_mint_sensors[sensor.living_room_score-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
'friendly_name': 'Living Room Score',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Score',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_score',
@@ -1298,12 +1298,12 @@
# name: test_awair_mint_sensors[sensor.living_room_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 0.0,
'device_class': 'temperature',
'friendly_name': 'Living Room Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_temperature',
@@ -1355,12 +1355,12 @@
# name: test_awair_mint_sensors[sensor.living_room_volatile_organic_compounds_parts-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 0.0,
'device_class': 'volatile_organic_compounds_parts',
'friendly_name': 'Living Room Volatile organic compounds parts',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'volatile_organic_compounds_parts',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Volatile organic compounds parts',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppb',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppb',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_volatile_organic_compounds_parts',
@@ -1412,12 +1412,12 @@
# name: test_awair_omni_sensors[sensor.living_room_carbon_dioxide-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 0.0,
'device_class': 'carbon_dioxide',
'friendly_name': 'Living Room Carbon dioxide',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'carbon_dioxide',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Carbon dioxide',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppm',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppm',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_carbon_dioxide',
@@ -1469,12 +1469,12 @@
# name: test_awair_omni_sensors[sensor.living_room_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 0.0,
'device_class': 'humidity',
'friendly_name': 'Living Room Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_humidity',
@@ -1526,11 +1526,11 @@
# name: test_awair_omni_sensors[sensor.living_room_illuminance-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
'device_class': 'illuminance',
'friendly_name': 'Living Room Illuminance',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'illuminance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Illuminance',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'lx',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'lx',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_illuminance',
@@ -1582,12 +1582,12 @@
# name: test_awair_omni_sensors[sensor.living_room_pm2_5-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 0.0,
'device_class': 'pm25',
'friendly_name': 'Living Room PM2.5',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm25',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room PM2.5',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_pm2_5',
@@ -1639,10 +1639,10 @@
# name: test_awair_omni_sensors[sensor.living_room_score-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
'friendly_name': 'Living Room Score',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Score',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_score',
@@ -1694,11 +1694,11 @@
# name: test_awair_omni_sensors[sensor.living_room_sound_level-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
'device_class': 'sound_pressure',
'friendly_name': 'Living Room Sound level',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'sound_pressure',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Sound level',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfSoundPressure.WEIGHTED_DECIBEL_A: 'dBA'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfSoundPressure.WEIGHTED_DECIBEL_A: 'dBA'>,
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_sound_level',
@@ -1753,12 +1753,12 @@
# name: test_awair_omni_sensors[sensor.living_room_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 0.0,
'device_class': 'temperature',
'friendly_name': 'Living Room Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_temperature',
@@ -1810,12 +1810,12 @@
# name: test_awair_omni_sensors[sensor.living_room_volatile_organic_compounds_parts-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
'awair_index': 0.0,
'device_class': 'volatile_organic_compounds_parts',
'friendly_name': 'Living Room Volatile organic compounds parts',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'volatile_organic_compounds_parts',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living Room Volatile organic compounds parts',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppb',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppb',
}),
'context': <ANY>,
'entity_id': 'sensor.living_room_volatile_organic_compounds_parts',
@@ -1870,11 +1870,11 @@
# name: test_local_awair_sensors[sensor.mock_title_absolute_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
'device_class': 'absolute_humidity',
'friendly_name': 'Mock Title Absolute humidity',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'absolute_humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Absolute humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'g/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'g/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.mock_title_absolute_humidity',
@@ -1926,11 +1926,11 @@
# name: test_local_awair_sensors[sensor.mock_title_carbon_dioxide-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
'device_class': 'carbon_dioxide',
'friendly_name': 'Mock Title Carbon dioxide',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'carbon_dioxide',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Carbon dioxide',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppm',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppm',
}),
'context': <ANY>,
'entity_id': 'sensor.mock_title_carbon_dioxide',
@@ -1985,11 +1985,11 @@
# name: test_local_awair_sensors[sensor.mock_title_dew_point-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
'device_class': 'temperature',
'friendly_name': 'Mock Title Dew point',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Dew point',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.mock_title_dew_point',
@@ -2041,11 +2041,11 @@
# name: test_local_awair_sensors[sensor.mock_title_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
'device_class': 'humidity',
'friendly_name': 'Mock Title Humidity',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.mock_title_humidity',
@@ -2097,11 +2097,11 @@
# name: test_local_awair_sensors[sensor.mock_title_pm2_5-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
'device_class': 'pm25',
'friendly_name': 'Mock Title PM2.5',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'pm25',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title PM2.5',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'μg/m³',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'μg/m³',
}),
'context': <ANY>,
'entity_id': 'sensor.mock_title_pm2_5',
@@ -2153,10 +2153,10 @@
# name: test_local_awair_sensors[sensor.mock_title_score-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
'friendly_name': 'Mock Title Score',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Score',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.mock_title_score',
@@ -2211,11 +2211,11 @@
# name: test_local_awair_sensors[sensor.mock_title_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
'device_class': 'temperature',
'friendly_name': 'Mock Title Temperature',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.mock_title_temperature',
@@ -2267,11 +2267,11 @@
# name: test_local_awair_sensors[sensor.mock_title_volatile_organic_compounds_parts-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'attribution': 'Awair air quality sensor',
'device_class': 'volatile_organic_compounds_parts',
'friendly_name': 'Mock Title Volatile organic compounds parts',
<EntityStateAttribute.ATTRIBUTION: 'attribution'>: 'Awair air quality sensor',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'volatile_organic_compounds_parts',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Mock Title Volatile organic compounds parts',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'ppb',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'ppb',
}),
'context': <ANY>,
'entity_id': 'sensor.mock_title_volatile_organic_compounds_parts',
@@ -76,9 +76,9 @@
# name: test_sensor[sensor.bucket_test_total_size_of_backups-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'data_size',
'friendly_name': 'Bucket test Total size of backups',
'unit_of_measurement': <UnitOfInformation.MEBIBYTES: 'MiB'>,
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'data_size',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bucket test Total size of backups',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfInformation.MEBIBYTES: 'MiB'>,
}),
'context': <ANY>,
'entity_id': 'sensor.bucket_test_total_size_of_backups',
@@ -39,8 +39,8 @@
# name: test_binary_sensors[event0][binary_sensor.home_daynight_1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'light',
'friendly_name': 'home DayNight 1',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'light',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'home DayNight 1',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.home_daynight_1',
@@ -90,8 +90,8 @@
# name: test_binary_sensors[event10][binary_sensor.home_object_analytics_device1scenario8-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'motion',
'friendly_name': 'home Object Analytics Device1Scenario8',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'motion',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'home Object Analytics Device1Scenario8',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.home_object_analytics_device1scenario8',
@@ -141,8 +141,8 @@
# name: test_binary_sensors[event1][binary_sensor.home_sound_1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'sound',
'friendly_name': 'home Sound 1',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'sound',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'home Sound 1',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.home_sound_1',
@@ -192,8 +192,8 @@
# name: test_binary_sensors[event2][binary_sensor.home_pir_sensor-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'connectivity',
'friendly_name': 'home PIR sensor',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'connectivity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'home PIR sensor',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.home_pir_sensor',
@@ -243,8 +243,8 @@
# name: test_binary_sensors[event3][binary_sensor.home_pir_0-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'motion',
'friendly_name': 'home PIR 0',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'motion',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'home PIR 0',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.home_pir_0',
@@ -294,8 +294,8 @@
# name: test_binary_sensors[event4][binary_sensor.home_fence_guard_profile_1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'motion',
'friendly_name': 'home Fence Guard Profile 1',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'motion',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'home Fence Guard Profile 1',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.home_fence_guard_profile_1',
@@ -345,8 +345,8 @@
# name: test_binary_sensors[event5][binary_sensor.home_motion_guard_profile_1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'motion',
'friendly_name': 'home Motion Guard Profile 1',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'motion',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'home Motion Guard Profile 1',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.home_motion_guard_profile_1',
@@ -396,8 +396,8 @@
# name: test_binary_sensors[event6][binary_sensor.home_loitering_guard_profile_1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'motion',
'friendly_name': 'home Loitering Guard Profile 1',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'motion',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'home Loitering Guard Profile 1',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.home_loitering_guard_profile_1',
@@ -447,8 +447,8 @@
# name: test_binary_sensors[event7][binary_sensor.home_vmd4_profile_1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'motion',
'friendly_name': 'home VMD4 Profile 1',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'motion',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'home VMD4 Profile 1',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.home_vmd4_profile_1',
@@ -498,8 +498,8 @@
# name: test_binary_sensors[event8][binary_sensor.home_object_analytics_scenario_1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'motion',
'friendly_name': 'home Object Analytics Scenario 1',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'motion',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'home Object Analytics Scenario 1',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.home_object_analytics_scenario_1',
@@ -549,8 +549,8 @@
# name: test_binary_sensors[event9][binary_sensor.home_vmd4_camera1profile9-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'motion',
'friendly_name': 'home VMD4 Camera1Profile9',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'motion',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'home VMD4 Camera1Profile9',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.home_vmd4_camera1profile9',
@@ -40,9 +40,9 @@
StateSnapshot({
'attributes': ReadOnlyDict({
<CameraEntityStateAttribute.ACCESS_TOKEN: 'access_token'>: '1',
'entity_picture': '/api/camera_proxy/camera.home?token=1',
'friendly_name': 'home',
'supported_features': <CameraEntityFeature: 2>,
<EntityStateAttribute.ENTITY_PICTURE: 'entity_picture'>: '/api/camera_proxy/camera.home?token=1',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'home',
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <CameraEntityFeature: 2>,
}),
'context': <ANY>,
'entity_id': 'camera.home',
@@ -93,9 +93,9 @@
StateSnapshot({
'attributes': ReadOnlyDict({
<CameraEntityStateAttribute.ACCESS_TOKEN: 'access_token'>: '1',
'entity_picture': '/api/camera_proxy/camera.home?token=1',
'friendly_name': 'home',
'supported_features': <CameraEntityFeature: 2>,
<EntityStateAttribute.ENTITY_PICTURE: 'entity_picture'>: '/api/camera_proxy/camera.home?token=1',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'home',
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <CameraEntityFeature: 2>,
}),
'context': <ANY>,
'entity_id': 'camera.home',
@@ -45,11 +45,11 @@
'attributes': ReadOnlyDict({
<LightEntityStateAttribute.BRIGHTNESS: 'brightness'>: 170,
<LightEntityStateAttribute.COLOR_MODE: 'color_mode'>: <ColorMode.BRIGHTNESS: 'brightness'>,
'friendly_name': 'home IR Light 0',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'home IR Light 0',
<LightEntityCapabilityAttribute.SUPPORTED_COLOR_MODES: 'supported_color_modes'>: list([
<ColorMode.BRIGHTNESS: 'brightness'>,
]),
'supported_features': <LightEntityFeature: 0>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <LightEntityFeature: 0>,
}),
'context': <ANY>,
'entity_id': 'light.home_ir_light_0',
@@ -39,8 +39,8 @@
# name: test_switches_with_port_cgi[root.IOPort.I0.Configurable=yes\nroot.IOPort.I0.Direction=output\nroot.IOPort.I0.Output.Name=Doorbell\nroot.IOPort.I0.Output.Active=closed\nroot.IOPort.I1.Configurable=yes\nroot.IOPort.I1.Direction=output\nroot.IOPort.I1.Output.Name=\nroot.IOPort.I1.Output.Active=open\n][switch.home_doorbell-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'outlet',
'friendly_name': 'home Doorbell',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'outlet',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'home Doorbell',
}),
'context': <ANY>,
'entity_id': 'switch.home_doorbell',
@@ -90,8 +90,8 @@
# name: test_switches_with_port_cgi[root.IOPort.I0.Configurable=yes\nroot.IOPort.I0.Direction=output\nroot.IOPort.I0.Output.Name=Doorbell\nroot.IOPort.I0.Output.Active=closed\nroot.IOPort.I1.Configurable=yes\nroot.IOPort.I1.Direction=output\nroot.IOPort.I1.Output.Name=\nroot.IOPort.I1.Output.Active=open\n][switch.home_relay_1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'outlet',
'friendly_name': 'home Relay 1',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'outlet',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'home Relay 1',
}),
'context': <ANY>,
'entity_id': 'switch.home_relay_1',
@@ -141,8 +141,8 @@
# name: test_switches_with_port_management[port_management_payload0-api_discovery_items0][switch.home_doorbell-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'outlet',
'friendly_name': 'home Doorbell',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'outlet',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'home Doorbell',
}),
'context': <ANY>,
'entity_id': 'switch.home_doorbell',
@@ -192,8 +192,8 @@
# name: test_switches_with_port_management[port_management_payload0-api_discovery_items0][switch.home_relay_1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'outlet',
'friendly_name': 'home Relay 1',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'outlet',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'home Relay 1',
}),
'context': <ANY>,
'entity_id': 'switch.home_relay_1',
@@ -42,7 +42,7 @@
'definition_id': 9876,
'definition_name': 'CI',
'finish_time': '2021-01-01T00:00:00Z',
'friendly_name': 'testproject CI latest build',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build',
'id': 5678,
'queue_time': '2021-01-01T00:00:00Z',
'reason': 'manual',
@@ -101,8 +101,8 @@
# name: test_sensors[sensor.testproject_ci_latest_build_finish_time-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'testproject CI latest build finish time',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build finish time',
}),
'context': <ANY>,
'entity_id': 'sensor.testproject_ci_latest_build_finish_time',
@@ -152,7 +152,7 @@
# name: test_sensors[sensor.testproject_ci_latest_build_id-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'testproject CI latest build ID',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build ID',
}),
'context': <ANY>,
'entity_id': 'sensor.testproject_ci_latest_build_id',
@@ -202,8 +202,8 @@
# name: test_sensors[sensor.testproject_ci_latest_build_queue_time-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'testproject CI latest build queue time',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build queue time',
}),
'context': <ANY>,
'entity_id': 'sensor.testproject_ci_latest_build_queue_time',
@@ -253,7 +253,7 @@
# name: test_sensors[sensor.testproject_ci_latest_build_reason-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'testproject CI latest build reason',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build reason',
}),
'context': <ANY>,
'entity_id': 'sensor.testproject_ci_latest_build_reason',
@@ -303,7 +303,7 @@
# name: test_sensors[sensor.testproject_ci_latest_build_result-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'testproject CI latest build result',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build result',
}),
'context': <ANY>,
'entity_id': 'sensor.testproject_ci_latest_build_result',
@@ -353,7 +353,7 @@
# name: test_sensors[sensor.testproject_ci_latest_build_source_branch-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'testproject CI latest build source branch',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build source branch',
}),
'context': <ANY>,
'entity_id': 'sensor.testproject_ci_latest_build_source_branch',
@@ -403,7 +403,7 @@
# name: test_sensors[sensor.testproject_ci_latest_build_source_version-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'testproject CI latest build source version',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build source version',
}),
'context': <ANY>,
'entity_id': 'sensor.testproject_ci_latest_build_source_version',
@@ -453,8 +453,8 @@
# name: test_sensors[sensor.testproject_ci_latest_build_start_time-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'testproject CI latest build start time',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build start time',
}),
'context': <ANY>,
'entity_id': 'sensor.testproject_ci_latest_build_start_time',
@@ -504,7 +504,7 @@
# name: test_sensors[sensor.testproject_ci_latest_build_url-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'testproject CI latest build URL',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build URL',
}),
'context': <ANY>,
'entity_id': 'sensor.testproject_ci_latest_build_url',
@@ -520,7 +520,7 @@
'definition_id': 9876,
'definition_name': 'CI',
'finish_time': None,
'friendly_name': 'testproject CI latest build',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build',
'id': 6789,
'queue_time': None,
'reason': None,
@@ -542,8 +542,8 @@
# name: test_sensors_missing_data[sensor.testproject_ci_latest_build_finish_time-state-missing-data]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'testproject CI latest build finish time',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build finish time',
}),
'context': <ANY>,
'entity_id': 'sensor.testproject_ci_latest_build_finish_time',
@@ -556,7 +556,7 @@
# name: test_sensors_missing_data[sensor.testproject_ci_latest_build_id-state-missing-data]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'testproject CI latest build ID',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build ID',
}),
'context': <ANY>,
'entity_id': 'sensor.testproject_ci_latest_build_id',
@@ -569,8 +569,8 @@
# name: test_sensors_missing_data[sensor.testproject_ci_latest_build_queue_time-state-missing-data]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'testproject CI latest build queue time',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build queue time',
}),
'context': <ANY>,
'entity_id': 'sensor.testproject_ci_latest_build_queue_time',
@@ -583,7 +583,7 @@
# name: test_sensors_missing_data[sensor.testproject_ci_latest_build_reason-state-missing-data]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'testproject CI latest build reason',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build reason',
}),
'context': <ANY>,
'entity_id': 'sensor.testproject_ci_latest_build_reason',
@@ -596,7 +596,7 @@
# name: test_sensors_missing_data[sensor.testproject_ci_latest_build_result-state-missing-data]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'testproject CI latest build result',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build result',
}),
'context': <ANY>,
'entity_id': 'sensor.testproject_ci_latest_build_result',
@@ -609,7 +609,7 @@
# name: test_sensors_missing_data[sensor.testproject_ci_latest_build_source_branch-state-missing-data]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'testproject CI latest build source branch',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build source branch',
}),
'context': <ANY>,
'entity_id': 'sensor.testproject_ci_latest_build_source_branch',
@@ -622,7 +622,7 @@
# name: test_sensors_missing_data[sensor.testproject_ci_latest_build_source_version-state-missing-data]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'testproject CI latest build source version',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build source version',
}),
'context': <ANY>,
'entity_id': 'sensor.testproject_ci_latest_build_source_version',
@@ -635,8 +635,8 @@
# name: test_sensors_missing_data[sensor.testproject_ci_latest_build_start_time-state-missing-data]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'testproject CI latest build start time',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build start time',
}),
'context': <ANY>,
'entity_id': 'sensor.testproject_ci_latest_build_start_time',
@@ -649,7 +649,7 @@
# name: test_sensors_missing_data[sensor.testproject_ci_latest_build_url-state-missing-data]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'testproject CI latest build URL',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'testproject CI latest build URL',
}),
'context': <ANY>,
'entity_id': 'sensor.testproject_ci_latest_build_url',
@@ -51,7 +51,7 @@
'failed',
'in_progress',
]),
'friendly_name': 'Backup Automatic backup',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Backup Automatic backup',
}),
'context': <ANY>,
'entity_id': 'event.backup_automatic_backup',
@@ -47,8 +47,8 @@
# name: test_sensors[sensor.backup_backup_manager_state-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'Backup Backup Manager state',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Backup Backup Manager state',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'idle',
'create_backup',
@@ -105,8 +105,8 @@
# name: test_sensors[sensor.backup_last_attempted_automatic_backup-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'Backup Last attempted automatic backup',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Backup Last attempted automatic backup',
}),
'context': <ANY>,
'entity_id': 'sensor.backup_last_attempted_automatic_backup',
@@ -156,8 +156,8 @@
# name: test_sensors[sensor.backup_last_successful_automatic_backup-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'Backup Last successful automatic backup',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Backup Last successful automatic backup',
}),
'context': <ANY>,
'entity_id': 'sensor.backup_last_successful_automatic_backup',
@@ -207,8 +207,8 @@
# name: test_sensors[sensor.backup_next_scheduled_automatic_backup-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'timestamp',
'friendly_name': 'Backup Next scheduled automatic backup',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'timestamp',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Backup Next scheduled automatic backup',
}),
'context': <ANY>,
'entity_id': 'sensor.backup_next_scheduled_automatic_backup',
@@ -39,8 +39,8 @@
# name: test_binary_sensors[binary_sensor.fakespa_circulation_pump-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'running',
'friendly_name': 'FakeSpa Circulation pump',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'running',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'FakeSpa Circulation pump',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.fakespa_circulation_pump',
@@ -90,8 +90,8 @@
# name: test_binary_sensors[binary_sensor.fakespa_filter_cycle_1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'running',
'friendly_name': 'FakeSpa Filter cycle 1',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'running',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'FakeSpa Filter cycle 1',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.fakespa_filter_cycle_1',
@@ -141,8 +141,8 @@
# name: test_binary_sensors[binary_sensor.fakespa_filter_cycle_2-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'running',
'friendly_name': 'FakeSpa Filter cycle 2',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'running',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'FakeSpa Filter cycle 2',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.fakespa_filter_cycle_2',
@@ -51,7 +51,7 @@
StateSnapshot({
'attributes': ReadOnlyDict({
<ClimateEntityStateAttribute.CURRENT_TEMPERATURE: 'current_temperature'>: 10.0,
'friendly_name': 'FakeSpa',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'FakeSpa',
<ClimateEntityStateAttribute.HVAC_ACTION: 'hvac_action'>: <HVACAction.IDLE: 'idle'>,
<ClimateEntityCapabilityAttribute.HVAC_MODES: 'hvac_modes'>: list([
<HVACMode.HEAT: 'heat'>,
@@ -64,7 +64,7 @@
'ready',
'rest',
]),
'supported_features': <ClimateEntityFeature: 401>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <ClimateEntityFeature: 401>,
<ClimateEntityStateAttribute.TEMPERATURE: 'temperature'>: 40.0,
}),
'context': <ANY>,
@@ -81,7 +81,7 @@
'standby_mode',
'water_too_hot',
]),
'friendly_name': 'FakeSpa Fault',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'FakeSpa Fault',
}),
'context': <ANY>,
'entity_id': 'event.fakespa_fault',
@@ -41,12 +41,12 @@
# name: test_fan[fan.fakespa_pump_1-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'FakeSpa Pump 1',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'FakeSpa Pump 1',
<FanEntityStateAttribute.PERCENTAGE: 'percentage'>: 0,
<FanEntityStateAttribute.PERCENTAGE_STEP: 'percentage_step'>: 50.0,
<FanEntityStateAttribute.PRESET_MODE: 'preset_mode'>: None,
<FanEntityCapabilityAttribute.PRESET_MODES: 'preset_modes'>: None,
'supported_features': <FanEntityFeature: 49>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <FanEntityFeature: 49>,
}),
'context': <ANY>,
'entity_id': 'fan.fakespa_pump_1',
@@ -44,11 +44,11 @@
StateSnapshot({
'attributes': ReadOnlyDict({
<LightEntityStateAttribute.COLOR_MODE: 'color_mode'>: None,
'friendly_name': 'FakeSpa Light',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'FakeSpa Light',
<LightEntityCapabilityAttribute.SUPPORTED_COLOR_MODES: 'supported_color_modes'>: list([
<ColorMode.ONOFF: 'onoff'>,
]),
'supported_features': <LightEntityFeature: 0>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <LightEntityFeature: 0>,
}),
'context': <ANY>,
'entity_id': 'light.fakespa_light',
@@ -44,7 +44,7 @@
# name: test_selects[select.fakespa_temperature_range-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'FakeSpa Temperature range',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'FakeSpa Temperature range',
<SelectEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'low',
'high',
@@ -39,7 +39,7 @@
# name: test_switches[switch.fakespa_filter_cycle_2_enabled-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'FakeSpa Filter cycle 2 enabled',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'FakeSpa Filter cycle 2 enabled',
}),
'context': <ANY>,
'entity_id': 'switch.fakespa_filter_cycle_2_enabled',
@@ -39,7 +39,7 @@
# name: test_times[time.fakespa_filter_cycle_1_end-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'FakeSpa Filter cycle 1 end',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'FakeSpa Filter cycle 1 end',
}),
'context': <ANY>,
'entity_id': 'time.fakespa_filter_cycle_1_end',
@@ -89,7 +89,7 @@
# name: test_times[time.fakespa_filter_cycle_1_start-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'FakeSpa Filter cycle 1 start',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'FakeSpa Filter cycle 1 start',
}),
'context': <ANY>,
'entity_id': 'time.fakespa_filter_cycle_1_start',
@@ -139,7 +139,7 @@
# name: test_times[time.fakespa_filter_cycle_2_end-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'FakeSpa Filter cycle 2 end',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'FakeSpa Filter cycle 2 end',
}),
'context': <ANY>,
'entity_id': 'time.fakespa_filter_cycle_2_end',
@@ -189,7 +189,7 @@
# name: test_times[time.fakespa_filter_cycle_2_start-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'FakeSpa Filter cycle 2 start',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'FakeSpa Filter cycle 2 start',
}),
'context': <ANY>,
'entity_id': 'time.fakespa_filter_cycle_2_start',
@@ -15,9 +15,9 @@
'Living room Balance': '1111.1111111.11111111@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.living_room_balance',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -37,7 +37,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095933>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095933>,
}),
'context': <ANY>,
'entity_id': 'media_player.living_room_balance',
@@ -63,9 +63,9 @@
'Living room Balance': '1111.1111111.11111111@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.living_room_balance',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -86,7 +86,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095935>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095935>,
}),
'context': <ANY>,
'entity_id': 'media_player.living_room_balance',
@@ -112,9 +112,9 @@
'Living room Balance': '1111.1111111.11111111@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.living_room_balance',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -135,7 +135,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095935>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095935>,
}),
'context': <ANY>,
'entity_id': 'media_player.living_room_balance',
@@ -161,9 +161,9 @@
'Living room Balance': '1111.1111111.11111111@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.living_room_balance',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -184,7 +184,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095935>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095935>,
}),
'context': <ANY>,
'entity_id': 'media_player.living_room_balance',
@@ -210,9 +210,9 @@
'Living room Balance': '1111.1111111.11111111@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.living_room_balance',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -233,7 +233,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095935>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095935>,
}),
'context': <ANY>,
'entity_id': 'media_player.living_room_balance',
@@ -259,9 +259,9 @@
'Living room Balance': '1111.1111111.11111111@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.living_room_balance',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -281,7 +281,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095933>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095933>,
}),
'context': <ANY>,
'entity_id': 'media_player.living_room_balance',
@@ -307,9 +307,9 @@
'Living room Balance': '1111.1111111.11111111@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.living_room_balance',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -329,7 +329,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095933>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095933>,
}),
'context': <ANY>,
'entity_id': 'media_player.living_room_balance',
@@ -355,9 +355,9 @@
'Living room Balance': '1111.1111111.11111111@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.living_room_balance',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -377,7 +377,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095933>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095933>,
}),
'context': <ANY>,
'entity_id': 'media_player.living_room_balance',
@@ -403,9 +403,9 @@
'Living room Balance': '1111.1111111.11111111@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.living_room_balance',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -425,7 +425,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095933>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095933>,
}),
'context': <ANY>,
'entity_id': 'media_player.living_room_balance',
@@ -451,9 +451,9 @@
'Living room Balance': '1111.1111111.11111111@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.living_room_balance',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -473,7 +473,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095933>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095933>,
}),
'context': <ANY>,
'entity_id': 'media_player.living_room_balance',
@@ -499,9 +499,9 @@
'Living room Balance': '1111.1111111.11111111@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.living_room_balance',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -521,7 +521,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095933>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095933>,
}),
'context': <ANY>,
'entity_id': 'media_player.living_room_balance',
@@ -547,9 +547,9 @@
'Living room Balance': '1111.1111111.11111111@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.living_room_balance',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -569,7 +569,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095933>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095933>,
}),
'context': <ANY>,
'entity_id': 'media_player.living_room_balance',
@@ -595,9 +595,9 @@
'Living room Balance': '1111.1111111.11111111@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.living_room_balance',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -618,7 +618,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095935>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095935>,
}),
'context': <ANY>,
'entity_id': 'media_player.living_room_balance',
@@ -644,9 +644,9 @@
'Living room Balance': '1111.1111111.22222222@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.laundry_room_core',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -666,7 +666,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095933>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095933>,
<MediaPlayerEntityStateAttribute.MEDIA_VOLUME_LEVEL: 'volume_level'>: 0.0,
}),
'context': <ANY>,
@@ -693,9 +693,9 @@
'Living room Balance': '1111.1111111.11111111@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.living_room_balance',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -716,7 +716,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095935>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095935>,
}),
'context': <ANY>,
'entity_id': 'media_player.living_room_balance',
@@ -742,9 +742,9 @@
'Living room Balance': '1111.1111111.22222222@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.laundry_room_core',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -764,7 +764,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095933>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095933>,
<MediaPlayerEntityStateAttribute.MEDIA_VOLUME_LEVEL: 'volume_level'>: 0.0,
}),
'context': <ANY>,
@@ -791,9 +791,9 @@
'Living room Balance': '1111.1111111.11111111@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.living_room_balance',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -815,7 +815,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095933>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095933>,
}),
'context': <ANY>,
'entity_id': 'media_player.living_room_balance',
@@ -841,9 +841,9 @@
'Living room Balance': '1111.1111111.22222222@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.laundry_room_core',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -863,7 +863,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095933>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095933>,
<MediaPlayerEntityStateAttribute.MEDIA_VOLUME_LEVEL: 'volume_level'>: 0.0,
}),
'context': <ANY>,
@@ -890,9 +890,9 @@
'Living room Balance': '1111.1111111.11111111@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.living_room_balance',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -913,7 +913,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095935>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095935>,
}),
'context': <ANY>,
'entity_id': 'media_player.living_room_balance',
@@ -939,9 +939,9 @@
'Living room Balance': '1111.1111111.22222222@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.laundry_room_core',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -961,7 +961,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095933>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095933>,
<MediaPlayerEntityStateAttribute.MEDIA_VOLUME_LEVEL: 'volume_level'>: 0.0,
}),
'context': <ANY>,
@@ -988,9 +988,9 @@
'Living room Balance': '1111.1111111.11111111@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.living_room_balance',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -1010,7 +1010,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095933>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095933>,
}),
'context': <ANY>,
'entity_id': 'media_player.living_room_balance',
@@ -1035,9 +1035,9 @@
'Living room Balance': '1111.1111111.11111111@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.laundry_room_core',
'media_player.living_room_balance',
@@ -1056,7 +1056,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095933>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095933>,
}),
'context': <ANY>,
'entity_id': 'media_player.living_room_balance',
@@ -1082,9 +1082,9 @@
'Living room Balance': '1111.1111111.22222222@products.bang-olufsen.com',
}),
}),
'device_class': 'speaker',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'speaker',
<MediaPlayerEntityStateAttribute.ENTITY_PICTURE_LOCAL: 'entity_picture_local'>: None,
'friendly_name': 'Living room Balance',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Living room Balance',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: list([
'media_player.laundry_room_core',
'listener_not_in_hass-1111.1111111.33333333@products.bang-olufsen.com',
@@ -1104,7 +1104,7 @@
'Line-In',
'HDMI A',
]),
'supported_features': <MediaPlayerEntityFeature: 2095933>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 2095933>,
<MediaPlayerEntityStateAttribute.MEDIA_VOLUME_LEVEL: 'volume_level'>: 0.0,
}),
'context': <ANY>,
@@ -39,8 +39,8 @@
# name: test_buttons_created[button.101_reboot-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'restart',
'friendly_name': '101 Reboot',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'restart',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: '101 Reboot',
}),
'context': <ANY>,
'entity_id': 'button.101_reboot',
@@ -90,8 +90,8 @@
# name: test_buttons_created[button.101_reset-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'restart',
'friendly_name': '101 Reset',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'restart',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: '101 Reset',
}),
'context': <ANY>,
'entity_id': 'button.101_reset',
@@ -141,7 +141,7 @@
# name: test_buttons_created[button.101_stop_charge_session-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': '101 Stop charge session',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: '101 Stop charge session',
}),
'context': <ANY>,
'entity_id': 'button.101_stop_charge_session',
@@ -41,10 +41,10 @@
# name: test_sensors[sensor.tempo_disc_thd_eeff_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'battery',
'friendly_name': 'Tempo Disc THD EEFF Battery',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'battery',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Tempo Disc THD EEFF Battery',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.tempo_disc_thd_eeff_battery',
@@ -99,10 +99,10 @@
# name: test_sensors[sensor.tempo_disc_thd_eeff_dew_point-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Tempo Disc THD EEFF Dew point',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Tempo Disc THD EEFF Dew point',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.tempo_disc_thd_eeff_dew_point',
@@ -154,10 +154,10 @@
# name: test_sensors[sensor.tempo_disc_thd_eeff_humidity-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'humidity',
'friendly_name': 'Tempo Disc THD EEFF Humidity',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'humidity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Tempo Disc THD EEFF Humidity',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.tempo_disc_thd_eeff_humidity',
@@ -209,10 +209,10 @@
# name: test_sensors[sensor.tempo_disc_thd_eeff_signal_strength-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'signal_strength',
'friendly_name': 'Tempo Disc THD EEFF Signal strength',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'signal_strength',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Tempo Disc THD EEFF Signal strength',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'dBm',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'dBm',
}),
'context': <ANY>,
'entity_id': 'sensor.tempo_disc_thd_eeff_signal_strength',
@@ -267,10 +267,10 @@
# name: test_sensors[sensor.tempo_disc_thd_eeff_temperature-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'temperature',
'friendly_name': 'Tempo Disc THD EEFF Temperature',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'temperature',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Tempo Disc THD EEFF Temperature',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTemperature.CELSIUS: '°C'>,
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: <UnitOfTemperature.CELSIUS: '°C'>,
}),
'context': <ANY>,
'entity_id': 'sensor.tempo_disc_thd_eeff_temperature',
@@ -2,7 +2,7 @@
# name: test_attributes_set
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'player-name1111',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'player-name1111',
<MediaPlayerEntityStateAttribute.GROUP_MEMBERS: 'group_members'>: None,
<MediaPlayerEntityStateAttribute.MEDIA_VOLUME_MUTED: 'is_volume_muted'>: False,
'master': False,
@@ -20,7 +20,7 @@
'input3',
'4',
]),
'supported_features': <MediaPlayerEntityFeature: 720445>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <MediaPlayerEntityFeature: 720445>,
<MediaPlayerEntityStateAttribute.MEDIA_VOLUME_LEVEL: 'volume_level'>: 0.1,
}),
'context': <ANY>,
@@ -42,8 +42,8 @@
<AlarmControlPanelEntityStateAttribute.CHANGED_BY: 'changed_by'>: None,
<AlarmControlPanelEntityStateAttribute.CODE_ARM_REQUIRED: 'code_arm_required'>: False,
<AlarmControlPanelEntityStateAttribute.CODE_FORMAT: 'code_format'>: None,
'friendly_name': 'Area1',
'supported_features': <AlarmControlPanelEntityFeature: 3>,
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1',
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <AlarmControlPanelEntityFeature: 3>,
}),
'context': <ANY>,
'entity_id': 'alarm_control_panel.area1',
@@ -96,8 +96,8 @@
<AlarmControlPanelEntityStateAttribute.CHANGED_BY: 'changed_by'>: None,
<AlarmControlPanelEntityStateAttribute.CODE_ARM_REQUIRED: 'code_arm_required'>: False,
<AlarmControlPanelEntityStateAttribute.CODE_FORMAT: 'code_format'>: None,
'friendly_name': 'Area1',
'supported_features': <AlarmControlPanelEntityFeature: 3>,
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1',
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <AlarmControlPanelEntityFeature: 3>,
}),
'context': <ANY>,
'entity_id': 'alarm_control_panel.area1',
@@ -150,8 +150,8 @@
<AlarmControlPanelEntityStateAttribute.CHANGED_BY: 'changed_by'>: None,
<AlarmControlPanelEntityStateAttribute.CODE_ARM_REQUIRED: 'code_arm_required'>: False,
<AlarmControlPanelEntityStateAttribute.CODE_FORMAT: 'code_format'>: None,
'friendly_name': 'Area1',
'supported_features': <AlarmControlPanelEntityFeature: 3>,
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1',
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <AlarmControlPanelEntityFeature: 3>,
}),
'context': <ANY>,
'entity_id': 'alarm_control_panel.area1',
@@ -39,7 +39,7 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.area1_area_ready_to_arm_away-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Area1 Area ready to arm away',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1 Area ready to arm away',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.area1_area_ready_to_arm_away',
@@ -89,7 +89,7 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.area1_area_ready_to_arm_home-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Area1 Area ready to arm home',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1 Area ready to arm home',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.area1_area_ready_to_arm_home',
@@ -139,7 +139,7 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.bedroom-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Bedroom',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bedroom',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bedroom',
@@ -189,8 +189,8 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.bosch_amax_3000_ac_failure-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch AMAX 3000 AC failure',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch AMAX 3000 AC failure',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_amax_3000_ac_failure',
@@ -240,8 +240,8 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.bosch_amax_3000_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'battery',
'friendly_name': 'Bosch AMAX 3000 Battery',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'battery',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch AMAX 3000 Battery',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_amax_3000_battery',
@@ -291,8 +291,8 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.bosch_amax_3000_battery_missing-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch AMAX 3000 Battery missing',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch AMAX 3000 Battery missing',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_amax_3000_battery_missing',
@@ -342,8 +342,8 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.bosch_amax_3000_crc_failure_in_panel_configuration-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch AMAX 3000 CRC failure in panel configuration',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch AMAX 3000 CRC failure in panel configuration',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_amax_3000_crc_failure_in_panel_configuration',
@@ -393,7 +393,7 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.bosch_amax_3000_failure_to_call_rps_since_last_rps_connection-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Bosch AMAX 3000 Failure to call RPS since last RPS connection',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch AMAX 3000 Failure to call RPS since last RPS connection',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_amax_3000_failure_to_call_rps_since_last_rps_connection',
@@ -443,8 +443,8 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.bosch_amax_3000_log_overflow-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch AMAX 3000 Log overflow',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch AMAX 3000 Log overflow',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_amax_3000_log_overflow',
@@ -494,8 +494,8 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.bosch_amax_3000_log_threshold_reached-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch AMAX 3000 Log threshold reached',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch AMAX 3000 Log threshold reached',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_amax_3000_log_threshold_reached',
@@ -545,8 +545,8 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.bosch_amax_3000_phone_line_failure-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'connectivity',
'friendly_name': 'Bosch AMAX 3000 Phone line failure',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'connectivity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch AMAX 3000 Phone line failure',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_amax_3000_phone_line_failure',
@@ -596,8 +596,8 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.bosch_amax_3000_point_bus_failure_since_last_rps_connection-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch AMAX 3000 Point bus failure since last RPS connection',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch AMAX 3000 Point bus failure since last RPS connection',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_amax_3000_point_bus_failure_since_last_rps_connection',
@@ -647,8 +647,8 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.bosch_amax_3000_problem-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch AMAX 3000 Problem',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch AMAX 3000 Problem',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_amax_3000_problem',
@@ -698,8 +698,8 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.bosch_amax_3000_sdi_failure_since_last_rps_connection-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch AMAX 3000 SDI failure since last RPS connection',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch AMAX 3000 SDI failure since last RPS connection',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_amax_3000_sdi_failure_since_last_rps_connection',
@@ -749,8 +749,8 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.bosch_amax_3000_user_code_tamper_since_last_rps_connection-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch AMAX 3000 User code tamper since last RPS connection',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch AMAX 3000 User code tamper since last RPS connection',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_amax_3000_user_code_tamper_since_last_rps_connection',
@@ -800,7 +800,7 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.co_detector-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'CO Detector',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'CO Detector',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.co_detector',
@@ -850,7 +850,7 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.door-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Door',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Door',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.door',
@@ -900,7 +900,7 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.glassbreak_sensor-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Glassbreak Sensor',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Glassbreak Sensor',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.glassbreak_sensor',
@@ -950,7 +950,7 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.motion_detector-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Motion Detector',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Motion Detector',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.motion_detector',
@@ -1000,7 +1000,7 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.smoke_detector-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Smoke Detector',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Smoke Detector',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.smoke_detector',
@@ -1050,7 +1050,7 @@
# name: test_binary_sensor[amax_3000-None][binary_sensor.window-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Window',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Window',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.window',
@@ -1100,7 +1100,7 @@
# name: test_binary_sensor[b5512-None][binary_sensor.area1_area_ready_to_arm_away-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Area1 Area ready to arm away',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1 Area ready to arm away',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.area1_area_ready_to_arm_away',
@@ -1150,7 +1150,7 @@
# name: test_binary_sensor[b5512-None][binary_sensor.area1_area_ready_to_arm_home-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Area1 Area ready to arm home',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1 Area ready to arm home',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.area1_area_ready_to_arm_home',
@@ -1200,7 +1200,7 @@
# name: test_binary_sensor[b5512-None][binary_sensor.bedroom-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Bedroom',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bedroom',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bedroom',
@@ -1250,8 +1250,8 @@
# name: test_binary_sensor[b5512-None][binary_sensor.bosch_b5512_us1b_ac_failure-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch B5512 (US1B) AC failure',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch B5512 (US1B) AC failure',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_b5512_us1b_ac_failure',
@@ -1301,8 +1301,8 @@
# name: test_binary_sensor[b5512-None][binary_sensor.bosch_b5512_us1b_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'battery',
'friendly_name': 'Bosch B5512 (US1B) Battery',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'battery',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch B5512 (US1B) Battery',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_b5512_us1b_battery',
@@ -1352,8 +1352,8 @@
# name: test_binary_sensor[b5512-None][binary_sensor.bosch_b5512_us1b_battery_missing-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch B5512 (US1B) Battery missing',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch B5512 (US1B) Battery missing',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_b5512_us1b_battery_missing',
@@ -1403,8 +1403,8 @@
# name: test_binary_sensor[b5512-None][binary_sensor.bosch_b5512_us1b_crc_failure_in_panel_configuration-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch B5512 (US1B) CRC failure in panel configuration',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch B5512 (US1B) CRC failure in panel configuration',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_b5512_us1b_crc_failure_in_panel_configuration',
@@ -1454,7 +1454,7 @@
# name: test_binary_sensor[b5512-None][binary_sensor.bosch_b5512_us1b_failure_to_call_rps_since_last_rps_connection-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Bosch B5512 (US1B) Failure to call RPS since last RPS connection',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch B5512 (US1B) Failure to call RPS since last RPS connection',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_b5512_us1b_failure_to_call_rps_since_last_rps_connection',
@@ -1504,8 +1504,8 @@
# name: test_binary_sensor[b5512-None][binary_sensor.bosch_b5512_us1b_log_overflow-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch B5512 (US1B) Log overflow',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch B5512 (US1B) Log overflow',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_b5512_us1b_log_overflow',
@@ -1555,8 +1555,8 @@
# name: test_binary_sensor[b5512-None][binary_sensor.bosch_b5512_us1b_log_threshold_reached-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch B5512 (US1B) Log threshold reached',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch B5512 (US1B) Log threshold reached',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_b5512_us1b_log_threshold_reached',
@@ -1606,8 +1606,8 @@
# name: test_binary_sensor[b5512-None][binary_sensor.bosch_b5512_us1b_phone_line_failure-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'connectivity',
'friendly_name': 'Bosch B5512 (US1B) Phone line failure',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'connectivity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch B5512 (US1B) Phone line failure',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_b5512_us1b_phone_line_failure',
@@ -1657,8 +1657,8 @@
# name: test_binary_sensor[b5512-None][binary_sensor.bosch_b5512_us1b_point_bus_failure_since_last_rps_connection-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch B5512 (US1B) Point bus failure since last RPS connection',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch B5512 (US1B) Point bus failure since last RPS connection',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_b5512_us1b_point_bus_failure_since_last_rps_connection',
@@ -1708,8 +1708,8 @@
# name: test_binary_sensor[b5512-None][binary_sensor.bosch_b5512_us1b_problem-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch B5512 (US1B) Problem',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch B5512 (US1B) Problem',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_b5512_us1b_problem',
@@ -1759,8 +1759,8 @@
# name: test_binary_sensor[b5512-None][binary_sensor.bosch_b5512_us1b_sdi_failure_since_last_rps_connection-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch B5512 (US1B) SDI failure since last RPS connection',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch B5512 (US1B) SDI failure since last RPS connection',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_b5512_us1b_sdi_failure_since_last_rps_connection',
@@ -1810,8 +1810,8 @@
# name: test_binary_sensor[b5512-None][binary_sensor.bosch_b5512_us1b_user_code_tamper_since_last_rps_connection-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch B5512 (US1B) User code tamper since last RPS connection',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch B5512 (US1B) User code tamper since last RPS connection',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_b5512_us1b_user_code_tamper_since_last_rps_connection',
@@ -1861,7 +1861,7 @@
# name: test_binary_sensor[b5512-None][binary_sensor.co_detector-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'CO Detector',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'CO Detector',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.co_detector',
@@ -1911,7 +1911,7 @@
# name: test_binary_sensor[b5512-None][binary_sensor.door-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Door',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Door',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.door',
@@ -1961,7 +1961,7 @@
# name: test_binary_sensor[b5512-None][binary_sensor.glassbreak_sensor-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Glassbreak Sensor',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Glassbreak Sensor',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.glassbreak_sensor',
@@ -2011,7 +2011,7 @@
# name: test_binary_sensor[b5512-None][binary_sensor.motion_detector-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Motion Detector',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Motion Detector',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.motion_detector',
@@ -2061,7 +2061,7 @@
# name: test_binary_sensor[b5512-None][binary_sensor.smoke_detector-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Smoke Detector',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Smoke Detector',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.smoke_detector',
@@ -2111,7 +2111,7 @@
# name: test_binary_sensor[b5512-None][binary_sensor.window-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Window',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Window',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.window',
@@ -2161,7 +2161,7 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.area1_area_ready_to_arm_away-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Area1 Area ready to arm away',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1 Area ready to arm away',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.area1_area_ready_to_arm_away',
@@ -2211,7 +2211,7 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.area1_area_ready_to_arm_home-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Area1 Area ready to arm home',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1 Area ready to arm home',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.area1_area_ready_to_arm_home',
@@ -2261,7 +2261,7 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.bedroom-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Bedroom',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bedroom',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bedroom',
@@ -2311,8 +2311,8 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.bosch_solution_3000_ac_failure-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch Solution 3000 AC failure',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch Solution 3000 AC failure',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_solution_3000_ac_failure',
@@ -2362,8 +2362,8 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.bosch_solution_3000_battery-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'battery',
'friendly_name': 'Bosch Solution 3000 Battery',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'battery',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch Solution 3000 Battery',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_solution_3000_battery',
@@ -2413,8 +2413,8 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.bosch_solution_3000_battery_missing-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch Solution 3000 Battery missing',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch Solution 3000 Battery missing',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_solution_3000_battery_missing',
@@ -2464,8 +2464,8 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.bosch_solution_3000_crc_failure_in_panel_configuration-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch Solution 3000 CRC failure in panel configuration',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch Solution 3000 CRC failure in panel configuration',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_solution_3000_crc_failure_in_panel_configuration',
@@ -2515,7 +2515,7 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.bosch_solution_3000_failure_to_call_rps_since_last_rps_connection-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Bosch Solution 3000 Failure to call RPS since last RPS connection',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch Solution 3000 Failure to call RPS since last RPS connection',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_solution_3000_failure_to_call_rps_since_last_rps_connection',
@@ -2565,8 +2565,8 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.bosch_solution_3000_log_overflow-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch Solution 3000 Log overflow',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch Solution 3000 Log overflow',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_solution_3000_log_overflow',
@@ -2616,8 +2616,8 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.bosch_solution_3000_log_threshold_reached-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch Solution 3000 Log threshold reached',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch Solution 3000 Log threshold reached',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_solution_3000_log_threshold_reached',
@@ -2667,8 +2667,8 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.bosch_solution_3000_phone_line_failure-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'connectivity',
'friendly_name': 'Bosch Solution 3000 Phone line failure',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'connectivity',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch Solution 3000 Phone line failure',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_solution_3000_phone_line_failure',
@@ -2718,8 +2718,8 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.bosch_solution_3000_point_bus_failure_since_last_rps_connection-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch Solution 3000 Point bus failure since last RPS connection',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch Solution 3000 Point bus failure since last RPS connection',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_solution_3000_point_bus_failure_since_last_rps_connection',
@@ -2769,8 +2769,8 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.bosch_solution_3000_problem-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch Solution 3000 Problem',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch Solution 3000 Problem',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_solution_3000_problem',
@@ -2820,8 +2820,8 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.bosch_solution_3000_sdi_failure_since_last_rps_connection-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch Solution 3000 SDI failure since last RPS connection',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch Solution 3000 SDI failure since last RPS connection',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_solution_3000_sdi_failure_since_last_rps_connection',
@@ -2871,8 +2871,8 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.bosch_solution_3000_user_code_tamper_since_last_rps_connection-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'problem',
'friendly_name': 'Bosch Solution 3000 User code tamper since last RPS connection',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'problem',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Bosch Solution 3000 User code tamper since last RPS connection',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.bosch_solution_3000_user_code_tamper_since_last_rps_connection',
@@ -2922,7 +2922,7 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.co_detector-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'CO Detector',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'CO Detector',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.co_detector',
@@ -2972,7 +2972,7 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.door-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Door',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Door',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.door',
@@ -3022,7 +3022,7 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.glassbreak_sensor-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Glassbreak Sensor',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Glassbreak Sensor',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.glassbreak_sensor',
@@ -3072,7 +3072,7 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.motion_detector-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Motion Detector',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Motion Detector',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.motion_detector',
@@ -3122,7 +3122,7 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.smoke_detector-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Smoke Detector',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Smoke Detector',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.smoke_detector',
@@ -3172,7 +3172,7 @@
# name: test_binary_sensor[solution_3000-None][binary_sensor.window-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Window',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Window',
}),
'context': <ANY>,
'entity_id': 'binary_sensor.window',
@@ -39,7 +39,7 @@
# name: test_sensor[amax_3000-None][sensor.area1_burglary_alarm_issues-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Area1 Burglary alarm issues',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1 Burglary alarm issues',
}),
'context': <ANY>,
'entity_id': 'sensor.area1_burglary_alarm_issues',
@@ -89,8 +89,8 @@
# name: test_sensor[amax_3000-None][sensor.area1_faulting_points-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Area1 Faulting points',
'unit_of_measurement': 'points',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1 Faulting points',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'points',
}),
'context': <ANY>,
'entity_id': 'sensor.area1_faulting_points',
@@ -140,7 +140,7 @@
# name: test_sensor[amax_3000-None][sensor.area1_fire_alarm_issues-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Area1 Fire alarm issues',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1 Fire alarm issues',
}),
'context': <ANY>,
'entity_id': 'sensor.area1_fire_alarm_issues',
@@ -190,7 +190,7 @@
# name: test_sensor[amax_3000-None][sensor.area1_gas_alarm_issues-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Area1 Gas alarm issues',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1 Gas alarm issues',
}),
'context': <ANY>,
'entity_id': 'sensor.area1_gas_alarm_issues',
@@ -240,7 +240,7 @@
# name: test_sensor[b5512-None][sensor.area1_burglary_alarm_issues-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Area1 Burglary alarm issues',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1 Burglary alarm issues',
}),
'context': <ANY>,
'entity_id': 'sensor.area1_burglary_alarm_issues',
@@ -290,8 +290,8 @@
# name: test_sensor[b5512-None][sensor.area1_faulting_points-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Area1 Faulting points',
'unit_of_measurement': 'points',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1 Faulting points',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'points',
}),
'context': <ANY>,
'entity_id': 'sensor.area1_faulting_points',
@@ -341,7 +341,7 @@
# name: test_sensor[b5512-None][sensor.area1_fire_alarm_issues-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Area1 Fire alarm issues',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1 Fire alarm issues',
}),
'context': <ANY>,
'entity_id': 'sensor.area1_fire_alarm_issues',
@@ -391,7 +391,7 @@
# name: test_sensor[b5512-None][sensor.area1_gas_alarm_issues-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Area1 Gas alarm issues',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1 Gas alarm issues',
}),
'context': <ANY>,
'entity_id': 'sensor.area1_gas_alarm_issues',
@@ -441,7 +441,7 @@
# name: test_sensor[solution_3000-None][sensor.area1_burglary_alarm_issues-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Area1 Burglary alarm issues',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1 Burglary alarm issues',
}),
'context': <ANY>,
'entity_id': 'sensor.area1_burglary_alarm_issues',
@@ -491,8 +491,8 @@
# name: test_sensor[solution_3000-None][sensor.area1_faulting_points-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Area1 Faulting points',
'unit_of_measurement': 'points',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1 Faulting points',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'points',
}),
'context': <ANY>,
'entity_id': 'sensor.area1_faulting_points',
@@ -542,7 +542,7 @@
# name: test_sensor[solution_3000-None][sensor.area1_fire_alarm_issues-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Area1 Fire alarm issues',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1 Fire alarm issues',
}),
'context': <ANY>,
'entity_id': 'sensor.area1_fire_alarm_issues',
@@ -592,7 +592,7 @@
# name: test_sensor[solution_3000-None][sensor.area1_gas_alarm_issues-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Area1 Gas alarm issues',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Area1 Gas alarm issues',
}),
'context': <ANY>,
'entity_id': 'sensor.area1_gas_alarm_issues',
@@ -39,7 +39,7 @@
# name: test_switch[amax_3000-None][switch.main_door_locked-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Main Door Locked',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Main Door Locked',
}),
'context': <ANY>,
'entity_id': 'switch.main_door_locked',
@@ -89,7 +89,7 @@
# name: test_switch[amax_3000-None][switch.main_door_momentarily_unlocked-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Main Door Momentarily unlocked',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Main Door Momentarily unlocked',
}),
'context': <ANY>,
'entity_id': 'switch.main_door_momentarily_unlocked',
@@ -139,7 +139,7 @@
# name: test_switch[amax_3000-None][switch.main_door_secured-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Main Door Secured',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Main Door Secured',
}),
'context': <ANY>,
'entity_id': 'switch.main_door_secured',
@@ -189,7 +189,7 @@
# name: test_switch[amax_3000-None][switch.output_a-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Output A',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Output A',
}),
'context': <ANY>,
'entity_id': 'switch.output_a',
@@ -239,7 +239,7 @@
# name: test_switch[b5512-None][switch.main_door_locked-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Main Door Locked',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Main Door Locked',
}),
'context': <ANY>,
'entity_id': 'switch.main_door_locked',
@@ -289,7 +289,7 @@
# name: test_switch[b5512-None][switch.main_door_momentarily_unlocked-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Main Door Momentarily unlocked',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Main Door Momentarily unlocked',
}),
'context': <ANY>,
'entity_id': 'switch.main_door_momentarily_unlocked',
@@ -339,7 +339,7 @@
# name: test_switch[b5512-None][switch.main_door_secured-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Main Door Secured',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Main Door Secured',
}),
'context': <ANY>,
'entity_id': 'switch.main_door_secured',
@@ -389,7 +389,7 @@
# name: test_switch[b5512-None][switch.output_a-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Output A',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Output A',
}),
'context': <ANY>,
'entity_id': 'switch.output_a',
@@ -439,7 +439,7 @@
# name: test_switch[solution_3000-None][switch.main_door_locked-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Main Door Locked',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Main Door Locked',
}),
'context': <ANY>,
'entity_id': 'switch.main_door_locked',
@@ -489,7 +489,7 @@
# name: test_switch[solution_3000-None][switch.main_door_momentarily_unlocked-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Main Door Momentarily unlocked',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Main Door Momentarily unlocked',
}),
'context': <ANY>,
'entity_id': 'switch.main_door_momentarily_unlocked',
@@ -539,7 +539,7 @@
# name: test_switch[solution_3000-None][switch.main_door_secured-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Main Door Secured',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Main Door Secured',
}),
'context': <ANY>,
'entity_id': 'switch.main_door_secured',
@@ -589,7 +589,7 @@
# name: test_switch[solution_3000-None][switch.output_a-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Output A',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Output A',
}),
'context': <ANY>,
'entity_id': 'switch.output_a',
@@ -45,14 +45,14 @@
# name: test_setup[event.baumarkt_activities-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'entity_picture': 'https://api.getbring.com/rest/v2/bringusers/profilepictures/9a21fdfc-63a4-441a-afc1-ef3030605a9d',
<EntityStateAttribute.ENTITY_PICTURE: 'entity_picture'>: 'https://api.getbring.com/rest/v2/bringusers/profilepictures/9a21fdfc-63a4-441a-afc1-ef3030605a9d',
<EventEntityStateAttribute.EVENT_TYPE: 'event_type'>: 'list_items_changed',
<EventEntityCapabilityAttribute.EVENT_TYPES: 'event_types'>: list([
'list_items_changed',
'list_items_added',
'list_items_removed',
]),
'friendly_name': 'Baumarkt Activities',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Baumarkt Activities',
'items': list([
]),
'last_activity_by': 'Bring',
@@ -132,14 +132,14 @@
# name: test_setup[event.einkauf_activities-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'entity_picture': 'https://api.getbring.com/rest/v2/bringusers/profilepictures/9a21fdfc-63a4-441a-afc1-ef3030605a9d',
<EntityStateAttribute.ENTITY_PICTURE: 'entity_picture'>: 'https://api.getbring.com/rest/v2/bringusers/profilepictures/9a21fdfc-63a4-441a-afc1-ef3030605a9d',
<EventEntityStateAttribute.EVENT_TYPE: 'event_type'>: 'list_items_changed',
<EventEntityCapabilityAttribute.EVENT_TYPES: 'event_types'>: list([
'list_items_changed',
'list_items_added',
'list_items_removed',
]),
'friendly_name': 'Einkauf Activities',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Einkauf Activities',
'items': list([
]),
'last_activity_by': 'Bring',
@@ -39,8 +39,8 @@
# name: test_setup[sensor.baumarkt_discount_only-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Baumarkt Discount only',
'unit_of_measurement': 'items',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Baumarkt Discount only',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'items',
}),
'context': <ANY>,
'entity_id': 'sensor.baumarkt_discount_only',
@@ -96,8 +96,8 @@
# name: test_setup[sensor.baumarkt_list_access-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'Baumarkt List access',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Baumarkt List access',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'registered',
'shared',
@@ -152,8 +152,8 @@
# name: test_setup[sensor.baumarkt_on_occasion-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Baumarkt On occasion',
'unit_of_measurement': 'items',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Baumarkt On occasion',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'items',
}),
'context': <ANY>,
'entity_id': 'sensor.baumarkt_on_occasion',
@@ -226,8 +226,8 @@
# name: test_setup[sensor.baumarkt_region_language-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'Baumarkt Region & language',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Baumarkt Region & language',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'de-at',
'de-ch',
@@ -299,8 +299,8 @@
# name: test_setup[sensor.baumarkt_urgent-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Baumarkt Urgent',
'unit_of_measurement': 'items',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Baumarkt Urgent',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'items',
}),
'context': <ANY>,
'entity_id': 'sensor.baumarkt_urgent',
@@ -350,8 +350,8 @@
# name: test_setup[sensor.einkauf_discount_only-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Einkauf Discount only',
'unit_of_measurement': 'items',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Einkauf Discount only',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'items',
}),
'context': <ANY>,
'entity_id': 'sensor.einkauf_discount_only',
@@ -407,8 +407,8 @@
# name: test_setup[sensor.einkauf_list_access-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'Einkauf List access',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Einkauf List access',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'registered',
'shared',
@@ -463,8 +463,8 @@
# name: test_setup[sensor.einkauf_on_occasion-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Einkauf On occasion',
'unit_of_measurement': 'items',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Einkauf On occasion',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'items',
}),
'context': <ANY>,
'entity_id': 'sensor.einkauf_on_occasion',
@@ -537,8 +537,8 @@
# name: test_setup[sensor.einkauf_region_language-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'enum',
'friendly_name': 'Einkauf Region & language',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'enum',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Einkauf Region & language',
<SensorEntityCapabilityAttribute.OPTIONS: 'options'>: list([
'de-at',
'de-ch',
@@ -610,8 +610,8 @@
# name: test_setup[sensor.einkauf_urgent-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Einkauf Urgent',
'unit_of_measurement': 'items',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Einkauf Urgent',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'items',
}),
'context': <ANY>,
'entity_id': 'sensor.einkauf_urgent',
@@ -39,8 +39,8 @@
# name: test_todo[todo.baumarkt-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Baumarkt',
'supported_features': <TodoListEntityFeature: 71>,
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Baumarkt',
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <TodoListEntityFeature: 71>,
}),
'context': <ANY>,
'entity_id': 'todo.baumarkt',
@@ -90,8 +90,8 @@
# name: test_todo[todo.einkauf-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'Einkauf',
'supported_features': <TodoListEntityFeature: 71>,
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'Einkauf',
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <TodoListEntityFeature: 71>,
}),
'context': <ANY>,
'entity_id': 'todo.einkauf',
@@ -41,9 +41,9 @@
# name: test_sensors[sensor.hl_l2340dw_b_w_pages-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW B/W pages',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW B/W pages',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'pages',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'pages',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_b_w_pages',
@@ -95,9 +95,9 @@
# name: test_sensors[sensor.hl_l2340dw_belt_unit_remaining_lifetime-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Belt unit remaining lifetime',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Belt unit remaining lifetime',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_belt_unit_remaining_lifetime',
@@ -149,9 +149,9 @@
# name: test_sensors[sensor.hl_l2340dw_black_drum_page_counter-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Black drum page counter',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Black drum page counter',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'pages',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'pages',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_black_drum_page_counter',
@@ -203,9 +203,9 @@
# name: test_sensors[sensor.hl_l2340dw_black_drum_remaining_lifetime-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Black drum remaining lifetime',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Black drum remaining lifetime',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_black_drum_remaining_lifetime',
@@ -257,9 +257,9 @@
# name: test_sensors[sensor.hl_l2340dw_black_drum_remaining_pages-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Black drum remaining pages',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Black drum remaining pages',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'pages',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'pages',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_black_drum_remaining_pages',
@@ -311,9 +311,9 @@
# name: test_sensors[sensor.hl_l2340dw_black_toner_remaining-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Black toner remaining',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Black toner remaining',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_black_toner_remaining',
@@ -365,9 +365,9 @@
# name: test_sensors[sensor.hl_l2340dw_color_pages-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Color pages',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Color pages',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'pages',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'pages',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_color_pages',
@@ -419,9 +419,9 @@
# name: test_sensors[sensor.hl_l2340dw_cyan_drum_page_counter-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Cyan drum page counter',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Cyan drum page counter',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'pages',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'pages',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_cyan_drum_page_counter',
@@ -473,9 +473,9 @@
# name: test_sensors[sensor.hl_l2340dw_cyan_drum_remaining_lifetime-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Cyan drum remaining lifetime',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Cyan drum remaining lifetime',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_cyan_drum_remaining_lifetime',
@@ -527,9 +527,9 @@
# name: test_sensors[sensor.hl_l2340dw_cyan_drum_remaining_pages-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Cyan drum remaining pages',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Cyan drum remaining pages',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'pages',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'pages',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_cyan_drum_remaining_pages',
@@ -581,9 +581,9 @@
# name: test_sensors[sensor.hl_l2340dw_cyan_toner_remaining-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Cyan toner remaining',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Cyan toner remaining',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_cyan_toner_remaining',
@@ -635,9 +635,9 @@
# name: test_sensors[sensor.hl_l2340dw_drum_page_counter-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Drum page counter',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Drum page counter',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'pages',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'pages',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_drum_page_counter',
@@ -689,9 +689,9 @@
# name: test_sensors[sensor.hl_l2340dw_drum_remaining_lifetime-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Drum remaining lifetime',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Drum remaining lifetime',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_drum_remaining_lifetime',
@@ -743,9 +743,9 @@
# name: test_sensors[sensor.hl_l2340dw_drum_remaining_pages-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Drum remaining pages',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Drum remaining pages',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'pages',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'pages',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_drum_remaining_pages',
@@ -797,9 +797,9 @@
# name: test_sensors[sensor.hl_l2340dw_duplex_unit_page_counter-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Duplex unit page counter',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Duplex unit page counter',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'pages',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'pages',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_duplex_unit_page_counter',
@@ -851,9 +851,9 @@
# name: test_sensors[sensor.hl_l2340dw_fuser_remaining_lifetime-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Fuser remaining lifetime',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Fuser remaining lifetime',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_fuser_remaining_lifetime',
@@ -905,9 +905,9 @@
# name: test_sensors[sensor.hl_l2340dw_magenta_drum_page_counter-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Magenta drum page counter',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Magenta drum page counter',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'pages',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'pages',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_magenta_drum_page_counter',
@@ -959,9 +959,9 @@
# name: test_sensors[sensor.hl_l2340dw_magenta_drum_remaining_lifetime-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Magenta drum remaining lifetime',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Magenta drum remaining lifetime',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_magenta_drum_remaining_lifetime',
@@ -1013,9 +1013,9 @@
# name: test_sensors[sensor.hl_l2340dw_magenta_drum_remaining_pages-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Magenta drum remaining pages',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Magenta drum remaining pages',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'pages',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'pages',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_magenta_drum_remaining_pages',
@@ -1067,9 +1067,9 @@
# name: test_sensors[sensor.hl_l2340dw_magenta_toner_remaining-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Magenta toner remaining',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Magenta toner remaining',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_magenta_toner_remaining',
@@ -1121,9 +1121,9 @@
# name: test_sensors[sensor.hl_l2340dw_page_counter-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Page counter',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Page counter',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'pages',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'pages',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_page_counter',
@@ -1175,9 +1175,9 @@
# name: test_sensors[sensor.hl_l2340dw_pf_kit_1_remaining_lifetime-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW PF Kit 1 remaining lifetime',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW PF Kit 1 remaining lifetime',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_pf_kit_1_remaining_lifetime',
@@ -1227,7 +1227,7 @@
# name: test_sensors[sensor.hl_l2340dw_status-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Status',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Status',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_status',
@@ -1277,8 +1277,8 @@
# name: test_sensors[sensor.hl_l2340dw_uptime-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'device_class': 'uptime',
'friendly_name': 'HL-L2340DW Uptime',
<EntityStateAttribute.DEVICE_CLASS: 'device_class'>: 'uptime',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Uptime',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_uptime',
@@ -1330,9 +1330,9 @@
# name: test_sensors[sensor.hl_l2340dw_yellow_drum_page_counter-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Yellow drum page counter',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Yellow drum page counter',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'pages',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'pages',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_yellow_drum_page_counter',
@@ -1384,9 +1384,9 @@
# name: test_sensors[sensor.hl_l2340dw_yellow_drum_remaining_lifetime-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Yellow drum remaining lifetime',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Yellow drum remaining lifetime',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_yellow_drum_remaining_lifetime',
@@ -1438,9 +1438,9 @@
# name: test_sensors[sensor.hl_l2340dw_yellow_drum_remaining_pages-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Yellow drum remaining pages',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Yellow drum remaining pages',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': 'pages',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: 'pages',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_yellow_drum_remaining_pages',
@@ -1492,9 +1492,9 @@
# name: test_sensors[sensor.hl_l2340dw_yellow_toner_remaining-state]
StateSnapshot({
'attributes': ReadOnlyDict({
'friendly_name': 'HL-L2340DW Yellow toner remaining',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'HL-L2340DW Yellow toner remaining',
<SensorEntityCapabilityAttribute.STATE_CLASS: 'state_class'>: <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': '%',
<EntityStateAttribute.UNIT_OF_MEASUREMENT: 'unit_of_measurement'>: '%',
}),
'context': <ANY>,
'entity_id': 'sensor.hl_l2340dw_yellow_toner_remaining',
@@ -62,7 +62,7 @@
'med',
'high',
]),
'friendly_name': 'System 1 Zone 1',
<EntityStateAttribute.FRIENDLY_NAME: 'friendly_name'>: 'System 1 Zone 1',
<ClimateEntityStateAttribute.HVAC_ACTION: 'hvac_action'>: <HVACAction.OFF: 'off'>,
<ClimateEntityCapabilityAttribute.HVAC_MODES: 'hvac_modes'>: list([
<HVACMode.HEAT: 'heat'>,
@@ -72,7 +72,7 @@
]),
<ClimateEntityCapabilityAttribute.MAX_TEMP: 'max_temp'>: 95,
<ClimateEntityCapabilityAttribute.MIN_TEMP: 'min_temp'>: 45,
'supported_features': <ClimateEntityFeature: 395>,
<EntityStateAttribute.SUPPORTED_FEATURES: 'supported_features'>: <ClimateEntityFeature: 395>,
<ClimateEntityStateAttribute.TARGET_TEMP_HIGH: 'target_temp_high'>: None,
<ClimateEntityStateAttribute.TARGET_TEMP_LOW: 'target_temp_low'>: None,
<ClimateEntityStateAttribute.TEMPERATURE: 'temperature'>: 72,

Some files were not shown because too many files have changed in this diff Show More