diff --git a/homeassistant/components/group/reproduce_state.py b/homeassistant/components/group/reproduce_state.py index eb81ab258e9..06d4f95dee3 100644 --- a/homeassistant/components/group/reproduce_state.py +++ b/homeassistant/components/group/reproduce_state.py @@ -25,6 +25,7 @@ async def async_reproduce_states( state.state, state.attributes, last_changed=state.last_changed, + last_reported=state.last_reported, last_updated=state.last_updated, context=state.context, ) diff --git a/homeassistant/components/recorder/db_schema.py b/homeassistant/components/recorder/db_schema.py index cc1e0e1d5ec..61e39e40034 100644 --- a/homeassistant/components/recorder/db_schema.py +++ b/homeassistant/components/recorder/db_schema.py @@ -536,8 +536,9 @@ class States(Base): # Join the state_attributes table on attributes_id to get the attributes # for newer states attrs, - last_changed, - last_updated, + last_changed=last_changed, + last_reported=last_updated, # Recorder does not yet record last_reported + last_updated=last_updated, context=context, validate_entity_id=validate_entity_id, ) diff --git a/homeassistant/const.py b/homeassistant/const.py index ac934dcc0d6..5c2908dc515 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -306,6 +306,7 @@ EVENT_LOGGING_CHANGED: Final = "logging_changed" EVENT_SERVICE_REGISTERED: Final = "service_registered" EVENT_SERVICE_REMOVED: Final = "service_removed" EVENT_STATE_CHANGED: Final = "state_changed" +EVENT_STATE_REPORTED: Final = "state_reported" EVENT_THEMES_UPDATED: Final = "themes_updated" EVENT_PANELS_UPDATED: Final = "panels_updated" EVENT_LOVELACE_UPDATED: Final = "lovelace_updated" diff --git a/homeassistant/core.py b/homeassistant/core.py index 9e040b82b98..cdf5cbfe6a8 100644 --- a/homeassistant/core.py +++ b/homeassistant/core.py @@ -71,6 +71,7 @@ from .const import ( EVENT_SERVICE_REGISTERED, EVENT_SERVICE_REMOVED, EVENT_STATE_CHANGED, + EVENT_STATE_REPORTED, MATCH_ALL, MAX_LENGTH_EVENT_EVENT_TYPE, MAX_LENGTH_STATE_STATE, @@ -175,6 +176,11 @@ TIMEOUT_EVENT_START = 15 MAX_EXPECTED_ENTITY_IDS = 16384 +EVENTS_EXCLUDED_FROM_MATCH_ALL = { + EVENT_HOMEASSISTANT_CLOSE, + EVENT_STATE_REPORTED, +} + _LOGGER = logging.getLogger(__name__) @@ -1327,6 +1333,10 @@ class _OneTimeListener: return f"<_OneTimeListener {self.listener_job.target}>" +# Empty list, used by EventBus._async_fire +EMPTY_LIST: list[Any] = [] + + class EventBus: """Allow the firing of and listening for events.""" @@ -1411,13 +1421,16 @@ class EventBus: "Bus:Handling %s", _event_repr(event_type, origin, event_data) ) - listeners = self._listeners.get(event_type) - # EVENT_HOMEASSISTANT_CLOSE should not be sent to MATCH_ALL listeners - if event_type != EVENT_HOMEASSISTANT_CLOSE: - if listeners: - listeners = self._match_all_listeners + listeners - else: - listeners = self._match_all_listeners.copy() + listeners = self._listeners.get(event_type, EMPTY_LIST) + if event_type not in EVENTS_EXCLUDED_FROM_MATCH_ALL: + match_all_listeners = self._match_all_listeners + else: + match_all_listeners = EMPTY_LIST + if event_type == EVENT_STATE_CHANGED: + aliased_listeners = self._listeners.get(EVENT_STATE_REPORTED, EMPTY_LIST) + else: + aliased_listeners = EMPTY_LIST + listeners = listeners + match_all_listeners + aliased_listeners if not listeners: return @@ -1605,6 +1618,7 @@ class State: state: the state of the entity attributes: extra information on entity and state last_changed: last time the state was changed. + last_reported: last time the state was reported. last_updated: last time the state or attributes were changed. context: Context in which it was created domain: Domain of this state. @@ -1617,6 +1631,7 @@ class State: state: str, attributes: Mapping[str, Any] | None = None, last_changed: datetime.datetime | None = None, + last_reported: datetime.datetime | None = None, last_updated: datetime.datetime | None = None, context: Context | None = None, validate_entity_id: bool | None = True, @@ -1642,7 +1657,8 @@ class State: self.attributes = ReadOnlyDict(attributes or {}) else: self.attributes = attributes - self.last_updated = last_updated or dt_util.utcnow() + self.last_reported = last_reported or dt_util.utcnow() + self.last_updated = last_updated or self.last_reported self.last_changed = last_changed or self.last_updated self.context = context or Context() self.state_info = state_info @@ -1655,16 +1671,21 @@ class State: "_", " " ) - @cached_property - def last_updated_timestamp(self) -> float: - """Timestamp of last update.""" - return self.last_updated.timestamp() - @cached_property def last_changed_timestamp(self) -> float: """Timestamp of last change.""" return self.last_changed.timestamp() + @cached_property + def last_reported_timestamp(self) -> float: + """Timestamp of last report.""" + return self.last_reported.timestamp() + + @cached_property + def last_updated_timestamp(self) -> float: + """Timestamp of last update.""" + return self.last_updated.timestamp() + @cached_property def _as_dict(self) -> dict[str, Any]: """Return a dict representation of the State. @@ -1677,11 +1698,16 @@ class State: last_updated_isoformat = last_changed_isoformat else: last_updated_isoformat = self.last_updated.isoformat() + if self.last_changed == self.last_reported: + last_reported_isoformat = last_changed_isoformat + else: + last_reported_isoformat = self.last_reported.isoformat() return { "entity_id": self.entity_id, "state": self.state, "attributes": self.attributes, "last_changed": last_changed_isoformat, + "last_reported": last_reported_isoformat, "last_updated": last_updated_isoformat, # _as_dict is marked as protected # to avoid callers outside of this module @@ -1776,15 +1802,17 @@ class State: return None last_changed = json_dict.get("last_changed") - if isinstance(last_changed, str): last_changed = dt_util.parse_datetime(last_changed) last_updated = json_dict.get("last_updated") - if isinstance(last_updated, str): last_updated = dt_util.parse_datetime(last_updated) + last_reported = json_dict.get("last_reported") + if isinstance(last_reported, str): + last_reported = dt_util.parse_datetime(last_reported) + if context := json_dict.get("context"): context = Context(id=context.get("id"), user_id=context.get("user_id")) @@ -1792,9 +1820,10 @@ class State: json_dict["entity_id"], json_dict["state"], json_dict.get("attributes"), - last_changed, - last_updated, - context, + last_changed=last_changed, + last_reported=last_reported, + last_updated=last_updated, + context=context, ) def expire(self) -> None: @@ -2103,6 +2132,19 @@ class StateMachine: now = dt_util.utc_from_timestamp(timestamp) if same_state and same_attr: + # mypy does not understand this is only possible if old_state is not None + old_last_reported = old_state.last_reported # type: ignore[union-attr] + old_state.last_reported = now # type: ignore[union-attr] + self._bus._async_fire( # pylint: disable=protected-access + EVENT_STATE_REPORTED, + { + "entity_id": entity_id, + "old_last_reported": old_last_reported, + "new_state": old_state, + }, + context=context, + time_fired=timestamp, + ) return if context is None: @@ -2123,6 +2165,7 @@ class StateMachine: attributes, last_changed, now, + now, context, old_state is None, state_info, diff --git a/homeassistant/helpers/template.py b/homeassistant/helpers/template.py index f7253097f57..36d481d9e29 100644 --- a/homeassistant/helpers/template.py +++ b/homeassistant/helpers/template.py @@ -1042,6 +1042,12 @@ class TemplateStateBase(State): self._collect_state() return self._state.last_changed + @property + def last_reported(self) -> datetime: # type: ignore[override] + """Wrap State.last_reported.""" + self._collect_state() + return self._state.last_reported + @property def last_updated(self) -> datetime: # type: ignore[override] """Wrap State.last_updated.""" diff --git a/tests/components/advantage_air/snapshots/test_climate.ambr b/tests/components/advantage_air/snapshots/test_climate.ambr index 6b8c18e7c87..bd1fb431ae1 100644 --- a/tests/components/advantage_air/snapshots/test_climate.ambr +++ b/tests/components/advantage_air/snapshots/test_climate.ambr @@ -54,6 +54,7 @@ 'context': , 'entity_id': 'climate.myauto', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'heat_cool', }) diff --git a/tests/components/advantage_air/snapshots/test_switch.ambr b/tests/components/advantage_air/snapshots/test_switch.ambr index 2060c0798ed..cc050bb6a4d 100644 --- a/tests/components/advantage_air/snapshots/test_switch.ambr +++ b/tests/components/advantage_air/snapshots/test_switch.ambr @@ -27,6 +27,7 @@ 'context': , 'entity_id': 'switch.myzone_myfan', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/airly/snapshots/test_sensor.ambr b/tests/components/airly/snapshots/test_sensor.ambr index 83b90cab3a6..23a4d13cd00 100644 --- a/tests/components/airly/snapshots/test_sensor.ambr +++ b/tests/components/airly/snapshots/test_sensor.ambr @@ -50,6 +50,7 @@ 'context': , 'entity_id': 'sensor.home_carbon_monoxide', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '162.49', }) @@ -103,6 +104,7 @@ 'context': , 'entity_id': 'sensor.home_common_air_quality_index', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '7.29', }) @@ -157,6 +159,7 @@ 'context': , 'entity_id': 'sensor.home_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '68.35', }) @@ -213,6 +216,7 @@ 'context': , 'entity_id': 'sensor.home_nitrogen_dioxide', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '16.04', }) @@ -269,6 +273,7 @@ 'context': , 'entity_id': 'sensor.home_ozone', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '41.52', }) @@ -323,6 +328,7 @@ 'context': , 'entity_id': 'sensor.home_pm1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2.83', }) @@ -379,6 +385,7 @@ 'context': , 'entity_id': 'sensor.home_pm10', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '6.06', }) @@ -435,6 +442,7 @@ 'context': , 'entity_id': 'sensor.home_pm2_5', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '4.37', }) @@ -489,6 +497,7 @@ 'context': , 'entity_id': 'sensor.home_pressure', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1019.86', }) @@ -545,6 +554,7 @@ 'context': , 'entity_id': 'sensor.home_sulphur_dioxide', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '13.97', }) @@ -599,6 +609,7 @@ 'context': , 'entity_id': 'sensor.home_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '14.37', }) diff --git a/tests/components/analytics_insights/snapshots/test_sensor.ambr b/tests/components/analytics_insights/snapshots/test_sensor.ambr index 80e53d18e98..d7eeed7955c 100644 --- a/tests/components/analytics_insights/snapshots/test_sensor.ambr +++ b/tests/components/analytics_insights/snapshots/test_sensor.ambr @@ -44,6 +44,7 @@ 'context': , 'entity_id': 'sensor.homeassistant_analytics_hacs_custom', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '157481', }) @@ -93,6 +94,7 @@ 'context': , 'entity_id': 'sensor.homeassistant_analytics_myq', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -142,6 +144,7 @@ 'context': , 'entity_id': 'sensor.homeassistant_analytics_spotify', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '24388', }) @@ -191,6 +194,7 @@ 'context': , 'entity_id': 'sensor.homeassistant_analytics_youtube', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '339', }) diff --git a/tests/components/aosmith/snapshots/test_sensor.ambr b/tests/components/aosmith/snapshots/test_sensor.ambr index 1b3043a7f3e..150e0c2934f 100644 --- a/tests/components/aosmith/snapshots/test_sensor.ambr +++ b/tests/components/aosmith/snapshots/test_sensor.ambr @@ -10,6 +10,7 @@ 'context': , 'entity_id': 'sensor.my_water_heater_energy_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '132.825', }) @@ -28,6 +29,7 @@ 'context': , 'entity_id': 'sensor.my_water_heater_hot_water_availability', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'low', }) diff --git a/tests/components/aosmith/snapshots/test_water_heater.ambr b/tests/components/aosmith/snapshots/test_water_heater.ambr index a4be3d107f3..c3740341c17 100644 --- a/tests/components/aosmith/snapshots/test_water_heater.ambr +++ b/tests/components/aosmith/snapshots/test_water_heater.ambr @@ -21,6 +21,7 @@ 'context': , 'entity_id': 'water_heater.my_water_heater', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'heat_pump', }) @@ -41,6 +42,7 @@ 'context': , 'entity_id': 'water_heater.my_water_heater', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'electric', }) diff --git a/tests/components/bmw_connected_drive/snapshots/test_button.ambr b/tests/components/bmw_connected_drive/snapshots/test_button.ambr index 16d70c5f183..17866878ba3 100644 --- a/tests/components/bmw_connected_drive/snapshots/test_button.ambr +++ b/tests/components/bmw_connected_drive/snapshots/test_button.ambr @@ -9,6 +9,7 @@ 'context': , 'entity_id': 'button.ix_xdrive50_flash_lights', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -20,6 +21,7 @@ 'context': , 'entity_id': 'button.ix_xdrive50_sound_horn', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -31,6 +33,7 @@ 'context': , 'entity_id': 'button.ix_xdrive50_activate_air_conditioning', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -42,6 +45,7 @@ 'context': , 'entity_id': 'button.ix_xdrive50_deactivate_air_conditioning', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -53,6 +57,7 @@ 'context': , 'entity_id': 'button.ix_xdrive50_find_vehicle', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -64,6 +69,7 @@ 'context': , 'entity_id': 'button.i4_edrive40_flash_lights', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -75,6 +81,7 @@ 'context': , 'entity_id': 'button.i4_edrive40_sound_horn', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -86,6 +93,7 @@ 'context': , 'entity_id': 'button.i4_edrive40_activate_air_conditioning', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -97,6 +105,7 @@ 'context': , 'entity_id': 'button.i4_edrive40_deactivate_air_conditioning', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -108,6 +117,7 @@ 'context': , 'entity_id': 'button.i4_edrive40_find_vehicle', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -119,6 +129,7 @@ 'context': , 'entity_id': 'button.m340i_xdrive_flash_lights', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -130,6 +141,7 @@ 'context': , 'entity_id': 'button.m340i_xdrive_sound_horn', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -141,6 +153,7 @@ 'context': , 'entity_id': 'button.m340i_xdrive_activate_air_conditioning', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -152,6 +165,7 @@ 'context': , 'entity_id': 'button.m340i_xdrive_deactivate_air_conditioning', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -163,6 +177,7 @@ 'context': , 'entity_id': 'button.m340i_xdrive_find_vehicle', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -174,6 +189,7 @@ 'context': , 'entity_id': 'button.i3_rex_flash_lights', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -185,6 +201,7 @@ 'context': , 'entity_id': 'button.i3_rex_sound_horn', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -196,6 +213,7 @@ 'context': , 'entity_id': 'button.i3_rex_activate_air_conditioning', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -207,6 +225,7 @@ 'context': , 'entity_id': 'button.i3_rex_find_vehicle', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), diff --git a/tests/components/bmw_connected_drive/snapshots/test_number.ambr b/tests/components/bmw_connected_drive/snapshots/test_number.ambr index 1e478fafb09..93580ddc7b7 100644 --- a/tests/components/bmw_connected_drive/snapshots/test_number.ambr +++ b/tests/components/bmw_connected_drive/snapshots/test_number.ambr @@ -14,6 +14,7 @@ 'context': , 'entity_id': 'number.ix_xdrive50_target_soc', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '80', }), @@ -30,6 +31,7 @@ 'context': , 'entity_id': 'number.i4_edrive40_target_soc', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '80', }), diff --git a/tests/components/bmw_connected_drive/snapshots/test_select.ambr b/tests/components/bmw_connected_drive/snapshots/test_select.ambr index a8b5e4ecca6..e72708345b1 100644 --- a/tests/components/bmw_connected_drive/snapshots/test_select.ambr +++ b/tests/components/bmw_connected_drive/snapshots/test_select.ambr @@ -25,6 +25,7 @@ 'context': , 'entity_id': 'select.ix_xdrive50_ac_charging_limit', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '16', }), @@ -40,6 +41,7 @@ 'context': , 'entity_id': 'select.ix_xdrive50_charging_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'IMMEDIATE_CHARGING', }), @@ -67,6 +69,7 @@ 'context': , 'entity_id': 'select.i4_edrive40_ac_charging_limit', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '16', }), @@ -82,6 +85,7 @@ 'context': , 'entity_id': 'select.i4_edrive40_charging_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'IMMEDIATE_CHARGING', }), @@ -97,6 +101,7 @@ 'context': , 'entity_id': 'select.i3_rex_charging_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'DELAYED_CHARGING', }), diff --git a/tests/components/bmw_connected_drive/snapshots/test_sensor.ambr b/tests/components/bmw_connected_drive/snapshots/test_sensor.ambr index b20189f5403..e28b4485af0 100644 --- a/tests/components/bmw_connected_drive/snapshots/test_sensor.ambr +++ b/tests/components/bmw_connected_drive/snapshots/test_sensor.ambr @@ -11,6 +11,7 @@ 'context': , 'entity_id': 'sensor.ix_xdrive50_remaining_range_total', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '340', }), @@ -24,6 +25,7 @@ 'context': , 'entity_id': 'sensor.ix_xdrive50_mileage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1121', }), @@ -36,6 +38,7 @@ 'context': , 'entity_id': 'sensor.ix_xdrive50_charging_end_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2023-06-22T10:40:00+00:00', }), @@ -47,6 +50,7 @@ 'context': , 'entity_id': 'sensor.ix_xdrive50_charging_status', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'CHARGING', }), @@ -61,6 +65,7 @@ 'context': , 'entity_id': 'sensor.ix_xdrive50_remaining_battery_percent', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '70', }), @@ -74,6 +79,7 @@ 'context': , 'entity_id': 'sensor.ix_xdrive50_remaining_range_electric', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '340', }), @@ -86,6 +92,7 @@ 'context': , 'entity_id': 'sensor.ix_xdrive50_charging_target', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '80', }), @@ -99,6 +106,7 @@ 'context': , 'entity_id': 'sensor.i4_edrive40_remaining_range_total', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '472', }), @@ -112,6 +120,7 @@ 'context': , 'entity_id': 'sensor.i4_edrive40_mileage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1121', }), @@ -124,6 +133,7 @@ 'context': , 'entity_id': 'sensor.i4_edrive40_charging_end_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2023-06-22T10:40:00+00:00', }), @@ -135,6 +145,7 @@ 'context': , 'entity_id': 'sensor.i4_edrive40_charging_status', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'NOT_CHARGING', }), @@ -149,6 +160,7 @@ 'context': , 'entity_id': 'sensor.i4_edrive40_remaining_battery_percent', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '80', }), @@ -162,6 +174,7 @@ 'context': , 'entity_id': 'sensor.i4_edrive40_remaining_range_electric', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '472', }), @@ -174,6 +187,7 @@ 'context': , 'entity_id': 'sensor.i4_edrive40_charging_target', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '80', }), @@ -187,6 +201,7 @@ 'context': , 'entity_id': 'sensor.m340i_xdrive_remaining_range_total', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '629', }), @@ -200,6 +215,7 @@ 'context': , 'entity_id': 'sensor.m340i_xdrive_mileage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1121', }), @@ -213,6 +229,7 @@ 'context': , 'entity_id': 'sensor.m340i_xdrive_remaining_fuel', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '40', }), @@ -226,6 +243,7 @@ 'context': , 'entity_id': 'sensor.m340i_xdrive_remaining_range_fuel', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '629', }), @@ -239,6 +257,7 @@ 'context': , 'entity_id': 'sensor.m340i_xdrive_remaining_fuel_percent', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '80', }), @@ -252,6 +271,7 @@ 'context': , 'entity_id': 'sensor.i3_rex_remaining_range_total', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '279', }), @@ -265,6 +285,7 @@ 'context': , 'entity_id': 'sensor.i3_rex_mileage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '137009', }), @@ -277,6 +298,7 @@ 'context': , 'entity_id': 'sensor.i3_rex_charging_end_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -288,6 +310,7 @@ 'context': , 'entity_id': 'sensor.i3_rex_charging_status', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'WAITING_FOR_CHARGING', }), @@ -302,6 +325,7 @@ 'context': , 'entity_id': 'sensor.i3_rex_remaining_battery_percent', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '82', }), @@ -315,6 +339,7 @@ 'context': , 'entity_id': 'sensor.i3_rex_remaining_range_electric', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '174', }), @@ -327,6 +352,7 @@ 'context': , 'entity_id': 'sensor.i3_rex_charging_target', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }), @@ -340,6 +366,7 @@ 'context': , 'entity_id': 'sensor.i3_rex_remaining_fuel', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '6', }), @@ -353,6 +380,7 @@ 'context': , 'entity_id': 'sensor.i3_rex_remaining_range_fuel', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '105', }), @@ -366,6 +394,7 @@ 'context': , 'entity_id': 'sensor.i3_rex_remaining_fuel_percent', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), diff --git a/tests/components/bmw_connected_drive/snapshots/test_switch.ambr b/tests/components/bmw_connected_drive/snapshots/test_switch.ambr index 009ff8306f0..a3c8ffb6d3b 100644 --- a/tests/components/bmw_connected_drive/snapshots/test_switch.ambr +++ b/tests/components/bmw_connected_drive/snapshots/test_switch.ambr @@ -9,6 +9,7 @@ 'context': , 'entity_id': 'switch.ix_xdrive50_climate', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -20,6 +21,7 @@ 'context': , 'entity_id': 'switch.ix_xdrive50_charging', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -31,6 +33,7 @@ 'context': , 'entity_id': 'switch.i4_edrive40_climate', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -42,6 +45,7 @@ 'context': , 'entity_id': 'switch.m340i_xdrive_climate', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), diff --git a/tests/components/ccm15/snapshots/test_climate.ambr b/tests/components/ccm15/snapshots/test_climate.ambr index 63f6612784b..10423919187 100644 --- a/tests/components/ccm15/snapshots/test_climate.ambr +++ b/tests/components/ccm15/snapshots/test_climate.ambr @@ -141,6 +141,7 @@ 'context': , 'entity_id': 'climate.midea_0', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -179,6 +180,7 @@ 'context': , 'entity_id': 'climate.midea_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'cool', }) @@ -320,6 +322,7 @@ 'context': , 'entity_id': 'climate.midea_0', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -353,6 +356,7 @@ 'context': , 'entity_id': 'climate.midea_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) diff --git a/tests/components/co2signal/snapshots/test_sensor.ambr b/tests/components/co2signal/snapshots/test_sensor.ambr index 0d0ae2cedb5..3702521e4c3 100644 --- a/tests/components/co2signal/snapshots/test_sensor.ambr +++ b/tests/components/co2signal/snapshots/test_sensor.ambr @@ -46,6 +46,7 @@ 'context': , 'entity_id': 'sensor.electricity_maps_co2_intensity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '45.9862319009581', }) @@ -97,6 +98,7 @@ 'context': , 'entity_id': 'sensor.electricity_maps_grid_fossil_fuel_percentage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5.4611827419371', }) diff --git a/tests/components/devolo_home_control/snapshots/test_binary_sensor.ambr b/tests/components/devolo_home_control/snapshots/test_binary_sensor.ambr index 851c1da4c62..0980a550c7b 100644 --- a/tests/components/devolo_home_control/snapshots/test_binary_sensor.ambr +++ b/tests/components/devolo_home_control/snapshots/test_binary_sensor.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'binary_sensor.test_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -54,6 +55,7 @@ 'context': , 'entity_id': 'binary_sensor.test_overload', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -99,6 +101,7 @@ 'context': , 'entity_id': 'binary_sensor.test_button_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/devolo_home_control/snapshots/test_climate.ambr b/tests/components/devolo_home_control/snapshots/test_climate.ambr index bb6bd7d0f40..be7d6f78142 100644 --- a/tests/components/devolo_home_control/snapshots/test_climate.ambr +++ b/tests/components/devolo_home_control/snapshots/test_climate.ambr @@ -16,6 +16,7 @@ 'context': , 'entity_id': 'climate.test', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'heat', }) diff --git a/tests/components/devolo_home_control/snapshots/test_cover.ambr b/tests/components/devolo_home_control/snapshots/test_cover.ambr index 34a149c10c2..7d88d42d5c2 100644 --- a/tests/components/devolo_home_control/snapshots/test_cover.ambr +++ b/tests/components/devolo_home_control/snapshots/test_cover.ambr @@ -10,6 +10,7 @@ 'context': , 'entity_id': 'cover.test', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'open', }) diff --git a/tests/components/devolo_home_control/snapshots/test_light.ambr b/tests/components/devolo_home_control/snapshots/test_light.ambr index 7b156dd894b..959656b52a4 100644 --- a/tests/components/devolo_home_control/snapshots/test_light.ambr +++ b/tests/components/devolo_home_control/snapshots/test_light.ambr @@ -13,6 +13,7 @@ 'context': , 'entity_id': 'light.test', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -68,6 +69,7 @@ 'context': , 'entity_id': 'light.test', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/devolo_home_control/snapshots/test_sensor.ambr b/tests/components/devolo_home_control/snapshots/test_sensor.ambr index 1f83877f14b..7f67c70f6ac 100644 --- a/tests/components/devolo_home_control/snapshots/test_sensor.ambr +++ b/tests/components/devolo_home_control/snapshots/test_sensor.ambr @@ -10,6 +10,7 @@ 'context': , 'entity_id': 'sensor.test_battery_level', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '25', }) @@ -60,6 +61,7 @@ 'context': , 'entity_id': 'sensor.test_current_consumption', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -110,6 +112,7 @@ 'context': , 'entity_id': 'sensor.test_total_consumption', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -160,6 +163,7 @@ 'context': , 'entity_id': 'sensor.test_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '20', }) diff --git a/tests/components/devolo_home_control/snapshots/test_siren.ambr b/tests/components/devolo_home_control/snapshots/test_siren.ambr index 82422e7f37f..5c94674998c 100644 --- a/tests/components/devolo_home_control/snapshots/test_siren.ambr +++ b/tests/components/devolo_home_control/snapshots/test_siren.ambr @@ -11,6 +11,7 @@ 'context': , 'entity_id': 'siren.test', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -64,6 +65,7 @@ 'context': , 'entity_id': 'siren.test', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -117,6 +119,7 @@ 'context': , 'entity_id': 'siren.test', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/devolo_home_control/snapshots/test_switch.ambr b/tests/components/devolo_home_control/snapshots/test_switch.ambr index e756fc26c9a..3e2f6f705d3 100644 --- a/tests/components/devolo_home_control/snapshots/test_switch.ambr +++ b/tests/components/devolo_home_control/snapshots/test_switch.ambr @@ -7,6 +7,7 @@ 'context': , 'entity_id': 'switch.test', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/devolo_home_network/snapshots/test_binary_sensor.ambr b/tests/components/devolo_home_network/snapshots/test_binary_sensor.ambr index 7545fff55f1..c0df0d5d5a5 100644 --- a/tests/components/devolo_home_network/snapshots/test_binary_sensor.ambr +++ b/tests/components/devolo_home_network/snapshots/test_binary_sensor.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'binary_sensor.mock_title_connected_to_router', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/devolo_home_network/snapshots/test_button.ambr b/tests/components/devolo_home_network/snapshots/test_button.ambr index 26be12805ce..3e8e4ae2bb3 100644 --- a/tests/components/devolo_home_network/snapshots/test_button.ambr +++ b/tests/components/devolo_home_network/snapshots/test_button.ambr @@ -51,6 +51,7 @@ 'context': , 'entity_id': 'button.mock_title_identify_device_with_a_blinking_led', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -140,6 +141,7 @@ 'context': , 'entity_id': 'button.mock_title_restart_device', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -228,6 +230,7 @@ 'context': , 'entity_id': 'button.mock_title_start_plc_pairing', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -316,6 +319,7 @@ 'context': , 'entity_id': 'button.mock_title_start_wps', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) diff --git a/tests/components/devolo_home_network/snapshots/test_device_tracker.ambr b/tests/components/devolo_home_network/snapshots/test_device_tracker.ambr index d438aca6a4a..9df6b168f9f 100644 --- a/tests/components/devolo_home_network/snapshots/test_device_tracker.ambr +++ b/tests/components/devolo_home_network/snapshots/test_device_tracker.ambr @@ -11,6 +11,7 @@ 'context': , 'entity_id': 'device_tracker.devolo_home_network_1234567890_aa_bb_cc_dd_ee_ff', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'home', }) diff --git a/tests/components/devolo_home_network/snapshots/test_sensor.ambr b/tests/components/devolo_home_network/snapshots/test_sensor.ambr index f961104a14f..fc173da8294 100644 --- a/tests/components/devolo_home_network/snapshots/test_sensor.ambr +++ b/tests/components/devolo_home_network/snapshots/test_sensor.ambr @@ -7,6 +7,7 @@ 'context': , 'entity_id': 'sensor.mock_title_connected_plc_devices', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1', }) @@ -53,6 +54,7 @@ 'context': , 'entity_id': 'sensor.mock_title_connected_wifi_clients', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1', }) @@ -100,6 +102,7 @@ 'context': , 'entity_id': 'sensor.mock_title_neighboring_wifi_networks', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1', }) @@ -147,6 +150,7 @@ 'context': , 'entity_id': 'sensor.mock_title_plc_downlink_phy_rate_test2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100.0', }) @@ -197,6 +201,7 @@ 'context': , 'entity_id': 'sensor.mock_title_plc_downlink_phy_rate_test2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100.0', }) diff --git a/tests/components/devolo_home_network/snapshots/test_switch.ambr b/tests/components/devolo_home_network/snapshots/test_switch.ambr index 760e240fee3..09b56efc784 100644 --- a/tests/components/devolo_home_network/snapshots/test_switch.ambr +++ b/tests/components/devolo_home_network/snapshots/test_switch.ambr @@ -93,6 +93,7 @@ 'context': , 'entity_id': 'switch.mock_title_enable_guest_wifi', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -138,6 +139,7 @@ 'context': , 'entity_id': 'switch.mock_title_enable_leds', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/devolo_home_network/snapshots/test_update.ambr b/tests/components/devolo_home_network/snapshots/test_update.ambr index 106b8f9885c..83ca84c82e8 100644 --- a/tests/components/devolo_home_network/snapshots/test_update.ambr +++ b/tests/components/devolo_home_network/snapshots/test_update.ambr @@ -18,6 +18,7 @@ 'context': , 'entity_id': 'update.mock_title_firmware', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/discovergy/snapshots/test_sensor.ambr b/tests/components/discovergy/snapshots/test_sensor.ambr index a107c44840d..b4831d81bda 100644 --- a/tests/components/discovergy/snapshots/test_sensor.ambr +++ b/tests/components/discovergy/snapshots/test_sensor.ambr @@ -84,6 +84,7 @@ 'context': , 'entity_id': 'sensor.electricity_teststrasse_1_total_consumption', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '11934.8699715', }) @@ -137,6 +138,7 @@ 'context': , 'entity_id': 'sensor.electricity_teststrasse_1_total_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -226,6 +228,7 @@ 'context': , 'entity_id': 'sensor.gas_teststrasse_1_total_gas_consumption', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '21064.8', }) diff --git a/tests/components/drop_connect/snapshots/test_binary_sensor.ambr b/tests/components/drop_connect/snapshots/test_binary_sensor.ambr index 8f39e76538c..c42cdb8cde1 100644 --- a/tests/components/drop_connect/snapshots/test_binary_sensor.ambr +++ b/tests/components/drop_connect/snapshots/test_binary_sensor.ambr @@ -41,6 +41,7 @@ 'context': , 'entity_id': 'binary_sensor.hub_drop_1_c0ffee_leak_detected', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -86,6 +87,7 @@ 'context': , 'entity_id': 'binary_sensor.hub_drop_1_c0ffee_notification_unread', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -132,6 +134,7 @@ 'context': , 'entity_id': 'binary_sensor.leak_detector_leak_detected', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -178,6 +181,7 @@ 'context': , 'entity_id': 'binary_sensor.protection_valve_leak_detected', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -224,6 +228,7 @@ 'context': , 'entity_id': 'binary_sensor.pump_controller_leak_detected', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -269,6 +274,7 @@ 'context': , 'entity_id': 'binary_sensor.pump_controller_pump_status', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -315,6 +321,7 @@ 'context': , 'entity_id': 'binary_sensor.ro_filter_leak_detected', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -360,6 +367,7 @@ 'context': , 'entity_id': 'binary_sensor.softener_reserve_capacity_in_use', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/ecovacs/snapshots/test_button.ambr b/tests/components/ecovacs/snapshots/test_button.ambr index ce28500cb52..816551f7e6a 100644 --- a/tests/components/ecovacs/snapshots/test_button.ambr +++ b/tests/components/ecovacs/snapshots/test_button.ambr @@ -40,6 +40,7 @@ 'context': , 'entity_id': 'button.ozmo_950_relocate', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2024-01-01T00:00:00+00:00', }) @@ -85,6 +86,7 @@ 'context': , 'entity_id': 'button.ozmo_950_reset_filter_lifespan', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2024-01-01T00:00:00+00:00', }) @@ -130,6 +132,7 @@ 'context': , 'entity_id': 'button.ozmo_950_reset_main_brush_lifespan', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2024-01-01T00:00:00+00:00', }) @@ -175,6 +178,7 @@ 'context': , 'entity_id': 'button.ozmo_950_reset_side_brushes_lifespan', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2024-01-01T00:00:00+00:00', }) diff --git a/tests/components/ecovacs/snapshots/test_number.ambr b/tests/components/ecovacs/snapshots/test_number.ambr index be4234b86ec..da8406491b4 100644 --- a/tests/components/ecovacs/snapshots/test_number.ambr +++ b/tests/components/ecovacs/snapshots/test_number.ambr @@ -49,6 +49,7 @@ 'context': , 'entity_id': 'number.ozmo_950_volume', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }) diff --git a/tests/components/ecovacs/snapshots/test_select.ambr b/tests/components/ecovacs/snapshots/test_select.ambr index c9fb352da27..125e7f0cee8 100644 --- a/tests/components/ecovacs/snapshots/test_select.ambr +++ b/tests/components/ecovacs/snapshots/test_select.ambr @@ -53,6 +53,7 @@ 'context': , 'entity_id': 'select.ozmo_950_water_flow_level', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'ultrahigh', }) diff --git a/tests/components/ecovacs/snapshots/test_sensor.ambr b/tests/components/ecovacs/snapshots/test_sensor.ambr index 58961db3c25..b35310158f2 100644 --- a/tests/components/ecovacs/snapshots/test_sensor.ambr +++ b/tests/components/ecovacs/snapshots/test_sensor.ambr @@ -41,6 +41,7 @@ 'context': , 'entity_id': 'sensor.ozmo_950_area_cleaned', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10', }) @@ -88,6 +89,7 @@ 'context': , 'entity_id': 'sensor.ozmo_950_battery', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }) @@ -138,6 +140,7 @@ 'context': , 'entity_id': 'sensor.ozmo_950_cleaning_duration', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5.0', }) @@ -184,6 +187,7 @@ 'context': , 'entity_id': 'sensor.ozmo_950_error', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -230,6 +234,7 @@ 'context': , 'entity_id': 'sensor.ozmo_950_filter_lifespan', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '56', }) @@ -275,6 +280,7 @@ 'context': , 'entity_id': 'sensor.ozmo_950_ip_address', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '192.168.0.10', }) @@ -321,6 +327,7 @@ 'context': , 'entity_id': 'sensor.ozmo_950_main_brush_lifespan', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '80', }) @@ -367,6 +374,7 @@ 'context': , 'entity_id': 'sensor.ozmo_950_side_brushes_lifespan', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '40', }) @@ -416,6 +424,7 @@ 'context': , 'entity_id': 'sensor.ozmo_950_total_area_cleaned', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '60', }) @@ -469,6 +478,7 @@ 'context': , 'entity_id': 'sensor.ozmo_950_total_cleaning_duration', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '40.000', }) @@ -517,6 +527,7 @@ 'context': , 'entity_id': 'sensor.ozmo_950_total_cleanings', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '123', }) @@ -562,6 +573,7 @@ 'context': , 'entity_id': 'sensor.ozmo_950_wi_fi_rssi', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-62', }) @@ -607,6 +619,7 @@ 'context': , 'entity_id': 'sensor.ozmo_950_wi_fi_ssid', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Testnetwork', }) diff --git a/tests/components/ecovacs/snapshots/test_switch.ambr b/tests/components/ecovacs/snapshots/test_switch.ambr index ecb5bc0dbe5..59e891bea5e 100644 --- a/tests/components/ecovacs/snapshots/test_switch.ambr +++ b/tests/components/ecovacs/snapshots/test_switch.ambr @@ -40,6 +40,7 @@ 'context': , 'entity_id': 'switch.goat_g1_advanced_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -85,6 +86,7 @@ 'context': , 'entity_id': 'switch.goat_g1_border_switch', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -130,6 +132,7 @@ 'context': , 'entity_id': 'switch.goat_g1_child_lock', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -175,6 +178,7 @@ 'context': , 'entity_id': 'switch.goat_g1_cross_map_border_warning', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -220,6 +224,7 @@ 'context': , 'entity_id': 'switch.goat_g1_move_up_warning', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -265,6 +270,7 @@ 'context': , 'entity_id': 'switch.goat_g1_safe_protect', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -310,6 +316,7 @@ 'context': , 'entity_id': 'switch.goat_g1_true_detect', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -355,6 +362,7 @@ 'context': , 'entity_id': 'switch.ozmo_950_advanced_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -400,6 +408,7 @@ 'context': , 'entity_id': 'switch.ozmo_950_carpet_auto_boost_suction', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -445,6 +454,7 @@ 'context': , 'entity_id': 'switch.ozmo_950_continuous_cleaning', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/elgato/snapshots/test_button.ambr b/tests/components/elgato/snapshots/test_button.ambr index 36fcfb11801..e7477540f46 100644 --- a/tests/components/elgato/snapshots/test_button.ambr +++ b/tests/components/elgato/snapshots/test_button.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'button.frenck_identify', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -88,6 +89,7 @@ 'context': , 'entity_id': 'button.frenck_restart', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) diff --git a/tests/components/elgato/snapshots/test_light.ambr b/tests/components/elgato/snapshots/test_light.ambr index a65f5c46b94..6ef773a7304 100644 --- a/tests/components/elgato/snapshots/test_light.ambr +++ b/tests/components/elgato/snapshots/test_light.ambr @@ -32,6 +32,7 @@ 'context': , 'entity_id': 'light.frenck', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -145,6 +146,7 @@ 'context': , 'entity_id': 'light.frenck', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -259,6 +261,7 @@ 'context': , 'entity_id': 'light.frenck', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/elgato/snapshots/test_sensor.ambr b/tests/components/elgato/snapshots/test_sensor.ambr index 0c6e593a2bc..2b52d6b9f23 100644 --- a/tests/components/elgato/snapshots/test_sensor.ambr +++ b/tests/components/elgato/snapshots/test_sensor.ambr @@ -10,6 +10,7 @@ 'context': , 'entity_id': 'sensor.frenck_battery', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '78.57', }) @@ -97,6 +98,7 @@ 'context': , 'entity_id': 'sensor.frenck_battery_voltage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3.86', }) @@ -187,6 +189,7 @@ 'context': , 'entity_id': 'sensor.frenck_charging_current', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3.008', }) @@ -277,6 +280,7 @@ 'context': , 'entity_id': 'sensor.frenck_charging_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '12.66', }) @@ -364,6 +368,7 @@ 'context': , 'entity_id': 'sensor.frenck_charging_voltage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '4.208', }) diff --git a/tests/components/elgato/snapshots/test_switch.ambr b/tests/components/elgato/snapshots/test_switch.ambr index 3b31b7bca14..41f3a8f3aaf 100644 --- a/tests/components/elgato/snapshots/test_switch.ambr +++ b/tests/components/elgato/snapshots/test_switch.ambr @@ -7,6 +7,7 @@ 'context': , 'entity_id': 'switch.frenck_energy_saving', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -86,6 +87,7 @@ 'context': , 'entity_id': 'switch.frenck_studio_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/energyzero/snapshots/test_sensor.ambr b/tests/components/energyzero/snapshots/test_sensor.ambr index 84a027b89f1..5ffa623fd87 100644 --- a/tests/components/energyzero/snapshots/test_sensor.ambr +++ b/tests/components/energyzero/snapshots/test_sensor.ambr @@ -466,6 +466,7 @@ 'context': , 'entity_id': 'sensor.energyzero_today_energy_average_price', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.37', }) @@ -537,6 +538,7 @@ 'context': , 'entity_id': 'sensor.energyzero_today_energy_current_hour_price', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.49', }) @@ -609,6 +611,7 @@ 'context': , 'entity_id': 'sensor.energyzero_today_energy_highest_price_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2022-12-07T16:00:00+00:00', }) @@ -679,6 +682,7 @@ 'context': , 'entity_id': 'sensor.energyzero_today_energy_hours_priced_equal_or_lower', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '23', }) @@ -749,6 +753,7 @@ 'context': , 'entity_id': 'sensor.energyzero_today_energy_max_price', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.55', }) @@ -820,6 +825,7 @@ 'context': , 'entity_id': 'sensor.energyzero_today_gas_current_hour_price', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.47', }) diff --git a/tests/components/enphase_envoy/snapshots/test_sensor.ambr b/tests/components/enphase_envoy/snapshots/test_sensor.ambr index c3fa2bf23f5..2dde7508ee4 100644 --- a/tests/components/enphase_envoy/snapshots/test_sensor.ambr +++ b/tests/components/enphase_envoy/snapshots/test_sensor.ambr @@ -2572,6 +2572,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_current_net_power_consumption', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.101', }) @@ -2597,6 +2598,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_current_power_consumption', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.234', }) @@ -2613,6 +2615,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_current_power_consumption_l1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.324', }) @@ -2629,6 +2632,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_current_power_consumption_l2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2.324', }) @@ -2645,6 +2649,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_current_power_consumption_l3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3.324', }) @@ -2661,6 +2666,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_current_power_production', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.234', }) @@ -2677,6 +2683,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_current_power_production_l1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.234', }) @@ -2693,6 +2700,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_current_power_production_l2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2.234', }) @@ -2709,6 +2717,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_current_power_production_l3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3.234', }) @@ -2724,6 +2733,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.234', }) @@ -2739,6 +2749,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.321', }) @@ -2754,6 +2765,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2.321', }) @@ -2769,6 +2781,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_energy_consumption_last_seven_days_l3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3.321', }) @@ -2785,6 +2798,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_energy_consumption_today', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.234', }) @@ -2801,6 +2815,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.323', }) @@ -2817,6 +2832,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2.323', }) @@ -2833,6 +2849,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_energy_consumption_today_l3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3.323', }) @@ -2848,6 +2865,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.234', }) @@ -2863,6 +2881,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.231', }) @@ -2878,6 +2897,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2.231', }) @@ -2893,6 +2913,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_energy_production_last_seven_days_l3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3.231', }) @@ -2909,6 +2930,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_energy_production_today', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.234', }) @@ -2925,6 +2947,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_energy_production_today_l1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.233', }) @@ -2941,6 +2964,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_energy_production_today_l2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2.233', }) @@ -2957,6 +2981,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_energy_production_today_l3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3.233', }) @@ -2985,6 +3010,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.001234', }) @@ -3001,6 +3027,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.001322', }) @@ -3017,6 +3044,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.002322', }) @@ -3033,6 +3061,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_lifetime_energy_consumption_l3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.003322', }) @@ -3049,6 +3078,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_lifetime_energy_production', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.001234', }) @@ -3065,6 +3095,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.001232', }) @@ -3081,6 +3112,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.002232', }) @@ -3097,6 +3129,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_lifetime_energy_production_l3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.003232', }) @@ -3113,6 +3146,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_consumption', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.021234', }) @@ -3138,6 +3172,7 @@ 'context': , 'entity_id': 'sensor.envoy_1234_lifetime_net_energy_production', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.022345', }) @@ -3226,6 +3261,7 @@ 'context': , 'entity_id': 'sensor.inverter_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1', }) diff --git a/tests/components/enphase_envoy/test_diagnostics.py b/tests/components/enphase_envoy/test_diagnostics.py index f1e601a48d7..a3b4f8e0f3c 100644 --- a/tests/components/enphase_envoy/test_diagnostics.py +++ b/tests/components/enphase_envoy/test_diagnostics.py @@ -15,6 +15,7 @@ TO_EXCLUDE = { "via_device_id", "last_updated", "last_changed", + "last_reported", } diff --git a/tests/components/flexit_bacnet/snapshots/test_binary_sensor.ambr b/tests/components/flexit_bacnet/snapshots/test_binary_sensor.ambr index 6d3ef4c1940..f983d834927 100644 --- a/tests/components/flexit_bacnet/snapshots/test_binary_sensor.ambr +++ b/tests/components/flexit_bacnet/snapshots/test_binary_sensor.ambr @@ -41,6 +41,7 @@ 'context': , 'entity_id': 'binary_sensor.device_name_air_filter_polluted', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/flexit_bacnet/snapshots/test_climate.ambr b/tests/components/flexit_bacnet/snapshots/test_climate.ambr index 6d5ef2251b8..551c5363e98 100644 --- a/tests/components/flexit_bacnet/snapshots/test_climate.ambr +++ b/tests/components/flexit_bacnet/snapshots/test_climate.ambr @@ -24,6 +24,7 @@ 'context': , 'entity_id': 'climate.device_name', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'fan_only', }) diff --git a/tests/components/flexit_bacnet/snapshots/test_number.ambr b/tests/components/flexit_bacnet/snapshots/test_number.ambr index 1318166fb87..008046bf512 100644 --- a/tests/components/flexit_bacnet/snapshots/test_number.ambr +++ b/tests/components/flexit_bacnet/snapshots/test_number.ambr @@ -51,6 +51,7 @@ 'context': , 'entity_id': 'number.device_name_away_extract_fan_setpoint', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '30', }) @@ -107,6 +108,7 @@ 'context': , 'entity_id': 'number.device_name_away_supply_fan_setpoint', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '40', }) @@ -163,6 +165,7 @@ 'context': , 'entity_id': 'number.device_name_cooker_hood_extract_fan_setpoint', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '90', }) @@ -219,6 +222,7 @@ 'context': , 'entity_id': 'number.device_name_cooker_hood_supply_fan_setpoint', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }) @@ -275,6 +279,7 @@ 'context': , 'entity_id': 'number.device_name_fireplace_extract_fan_setpoint', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10', }) @@ -331,6 +336,7 @@ 'context': , 'entity_id': 'number.device_name_fireplace_supply_fan_setpoint', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '20', }) @@ -387,6 +393,7 @@ 'context': , 'entity_id': 'number.device_name_high_extract_fan_setpoint', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '70', }) @@ -443,6 +450,7 @@ 'context': , 'entity_id': 'number.device_name_high_supply_fan_setpoint', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '80', }) @@ -499,6 +507,7 @@ 'context': , 'entity_id': 'number.device_name_home_extract_fan_setpoint', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '50', }) @@ -555,6 +564,7 @@ 'context': , 'entity_id': 'number.device_name_home_supply_fan_setpoint', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '60', }) diff --git a/tests/components/flexit_bacnet/snapshots/test_sensor.ambr b/tests/components/flexit_bacnet/snapshots/test_sensor.ambr index 55d1c525be6..2c65bd53a6e 100644 --- a/tests/components/flexit_bacnet/snapshots/test_sensor.ambr +++ b/tests/components/flexit_bacnet/snapshots/test_sensor.ambr @@ -47,6 +47,7 @@ 'context': , 'entity_id': 'sensor.device_name_air_filter_operating_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '8820.0', }) @@ -97,6 +98,7 @@ 'context': , 'entity_id': 'sensor.device_name_electric_heater_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.396365851163864', }) @@ -146,6 +148,7 @@ 'context': , 'entity_id': 'sensor.device_name_exhaust_air_fan', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2606', }) @@ -195,6 +198,7 @@ 'context': , 'entity_id': 'sensor.device_name_exhaust_air_fan_control_signal', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '70', }) @@ -242,6 +246,7 @@ 'context': , 'entity_id': 'sensor.device_name_exhaust_air_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-3.3', }) @@ -289,6 +294,7 @@ 'context': , 'entity_id': 'sensor.device_name_extract_air_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '19.0', }) @@ -342,6 +348,7 @@ 'context': , 'entity_id': 'sensor.device_name_fireplace_ventilation_remaining_duration', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10.0', }) @@ -391,6 +398,7 @@ 'context': , 'entity_id': 'sensor.device_name_heat_exchanger_efficiency', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '81', }) @@ -440,6 +448,7 @@ 'context': , 'entity_id': 'sensor.device_name_heat_exchanger_speed', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }) @@ -487,6 +496,7 @@ 'context': , 'entity_id': 'sensor.device_name_outside_air_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-8.6', }) @@ -540,6 +550,7 @@ 'context': , 'entity_id': 'sensor.device_name_rapid_ventilation_remaining_duration', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '30.0', }) @@ -587,6 +598,7 @@ 'context': , 'entity_id': 'sensor.device_name_room_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '19.0', }) @@ -636,6 +648,7 @@ 'context': , 'entity_id': 'sensor.device_name_supply_air_fan', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2784', }) @@ -685,6 +698,7 @@ 'context': , 'entity_id': 'sensor.device_name_supply_air_fan_control_signal', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '74', }) @@ -732,6 +746,7 @@ 'context': , 'entity_id': 'sensor.device_name_supply_air_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '19.1', }) diff --git a/tests/components/flexit_bacnet/snapshots/test_switch.ambr b/tests/components/flexit_bacnet/snapshots/test_switch.ambr index 5a7350f9728..d054608f1f7 100644 --- a/tests/components/flexit_bacnet/snapshots/test_switch.ambr +++ b/tests/components/flexit_bacnet/snapshots/test_switch.ambr @@ -41,6 +41,7 @@ 'context': , 'entity_id': 'switch.device_name_electric_heater', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -54,6 +55,7 @@ 'context': , 'entity_id': 'switch.device_name_electric_heater', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/gardena_bluetooth/snapshots/test_binary_sensor.ambr b/tests/components/gardena_bluetooth/snapshots/test_binary_sensor.ambr index 8a2600dcbb1..0ce39de5894 100644 --- a/tests/components/gardena_bluetooth/snapshots/test_binary_sensor.ambr +++ b/tests/components/gardena_bluetooth/snapshots/test_binary_sensor.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'binary_sensor.mock_title_valve_connection', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -21,6 +22,7 @@ 'context': , 'entity_id': 'binary_sensor.mock_title_valve_connection', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/gardena_bluetooth/snapshots/test_button.ambr b/tests/components/gardena_bluetooth/snapshots/test_button.ambr index b9cdca0e03c..c1ac96f0809 100644 --- a/tests/components/gardena_bluetooth/snapshots/test_button.ambr +++ b/tests/components/gardena_bluetooth/snapshots/test_button.ambr @@ -7,6 +7,7 @@ 'context': , 'entity_id': 'button.mock_title_factory_reset', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -19,6 +20,7 @@ 'context': , 'entity_id': 'button.mock_title_factory_reset', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) diff --git a/tests/components/gardena_bluetooth/snapshots/test_number.ambr b/tests/components/gardena_bluetooth/snapshots/test_number.ambr index 0b39525dc82..c89ead450d2 100644 --- a/tests/components/gardena_bluetooth/snapshots/test_number.ambr +++ b/tests/components/gardena_bluetooth/snapshots/test_number.ambr @@ -12,6 +12,7 @@ 'context': , 'entity_id': 'number.mock_title_remaining_open_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -29,6 +30,7 @@ 'context': , 'entity_id': 'number.mock_title_manual_watering_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -46,6 +48,7 @@ 'context': , 'entity_id': 'number.mock_title_remaining_open_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -63,6 +66,7 @@ 'context': , 'entity_id': 'number.mock_title_manual_watering_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -80,6 +84,7 @@ 'context': , 'entity_id': 'number.mock_title_sensor_threshold', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -97,6 +102,7 @@ 'context': , 'entity_id': 'number.mock_title_sensor_threshold', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '45.0', }) @@ -114,6 +120,7 @@ 'context': , 'entity_id': 'number.mock_title_remaining_open_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100.0', }) @@ -131,6 +138,7 @@ 'context': , 'entity_id': 'number.mock_title_remaining_open_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10.0', }) @@ -148,6 +156,7 @@ 'context': , 'entity_id': 'number.mock_title_remaining_open_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -165,6 +174,7 @@ 'context': , 'entity_id': 'number.mock_title_remaining_open_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -182,6 +192,7 @@ 'context': , 'entity_id': 'number.mock_title_open_for', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -199,6 +210,7 @@ 'context': , 'entity_id': 'number.mock_title_manual_watering_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100.0', }) @@ -216,6 +228,7 @@ 'context': , 'entity_id': 'number.mock_title_manual_watering_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10.0', }) diff --git a/tests/components/gardena_bluetooth/snapshots/test_sensor.ambr b/tests/components/gardena_bluetooth/snapshots/test_sensor.ambr index 1c33e8ebab9..3739fc19fd1 100644 --- a/tests/components/gardena_bluetooth/snapshots/test_sensor.ambr +++ b/tests/components/gardena_bluetooth/snapshots/test_sensor.ambr @@ -10,6 +10,7 @@ 'context': , 'entity_id': 'sensor.mock_title_sensor_battery', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -25,6 +26,7 @@ 'context': , 'entity_id': 'sensor.mock_title_sensor_battery', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '45', }) @@ -38,6 +40,7 @@ 'context': , 'entity_id': 'sensor.mock_title_valve_closing', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2023-01-01T01:01:40+00:00', }) @@ -51,6 +54,7 @@ 'context': , 'entity_id': 'sensor.mock_title_valve_closing', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2023-01-01T01:01:10+00:00', }) @@ -64,6 +68,7 @@ 'context': , 'entity_id': 'sensor.mock_title_valve_closing', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -79,6 +84,7 @@ 'context': , 'entity_id': 'sensor.mock_title_battery', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }) @@ -94,6 +100,7 @@ 'context': , 'entity_id': 'sensor.mock_title_battery', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10', }) diff --git a/tests/components/gardena_bluetooth/snapshots/test_switch.ambr b/tests/components/gardena_bluetooth/snapshots/test_switch.ambr index 37dae0bff75..3b55aade60f 100644 --- a/tests/components/gardena_bluetooth/snapshots/test_switch.ambr +++ b/tests/components/gardena_bluetooth/snapshots/test_switch.ambr @@ -7,6 +7,7 @@ 'context': , 'entity_id': 'switch.mock_title_open', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -19,6 +20,7 @@ 'context': , 'entity_id': 'switch.mock_title_open', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/glances/snapshots/test_sensor.ambr b/tests/components/glances/snapshots/test_sensor.ambr index a9d3436aac8..23242f66071 100644 --- a/tests/components/glances/snapshots/test_sensor.ambr +++ b/tests/components/glances/snapshots/test_sensor.ambr @@ -43,6 +43,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_containers_active', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) @@ -92,6 +93,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_containers_cpu_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '77.2', }) @@ -142,6 +144,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_containers_memory_used', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1149.6', }) @@ -192,6 +195,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_cpu_thermal_1_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '59', }) @@ -242,6 +246,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_err_temp_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -290,6 +295,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_md1_available', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) @@ -338,6 +344,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_md1_used', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) @@ -386,6 +393,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_md3_available', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) @@ -434,6 +442,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_md3_used', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) @@ -484,6 +493,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_media_disk_free', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '426.5', }) @@ -533,6 +543,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_media_disk_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '6.7', }) @@ -583,6 +594,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_media_disk_used', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '30.7', }) @@ -633,6 +645,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_memory_free', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2745.0', }) @@ -682,6 +695,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_memory_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '27.6', }) @@ -732,6 +746,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_memory_use', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1047.1', }) @@ -782,6 +797,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_na_temp_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -832,6 +848,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_ssl_disk_free', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '426.5', }) @@ -881,6 +898,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_ssl_disk_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '6.7', }) @@ -931,6 +949,7 @@ 'context': , 'entity_id': 'sensor.0_0_0_0_ssl_disk_used', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '30.7', }) diff --git a/tests/components/gree/snapshots/test_climate.ambr b/tests/components/gree/snapshots/test_climate.ambr index e5d733bc6f0..4f62be5cded 100644 --- a/tests/components/gree/snapshots/test_climate.ambr +++ b/tests/components/gree/snapshots/test_climate.ambr @@ -46,6 +46,7 @@ 'context': , 'entity_id': 'climate.fake_device_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), diff --git a/tests/components/gree/snapshots/test_switch.ambr b/tests/components/gree/snapshots/test_switch.ambr index 988771cd517..71c6d3ea71d 100644 --- a/tests/components/gree/snapshots/test_switch.ambr +++ b/tests/components/gree/snapshots/test_switch.ambr @@ -9,6 +9,7 @@ 'context': , 'entity_id': 'switch.fake_device_1_panel_light', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -20,6 +21,7 @@ 'context': , 'entity_id': 'switch.fake_device_1_quiet', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -31,6 +33,7 @@ 'context': , 'entity_id': 'switch.fake_device_1_fresh_air', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -42,6 +45,7 @@ 'context': , 'entity_id': 'switch.fake_device_1_xfan', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -53,6 +57,7 @@ 'context': , 'entity_id': 'switch.fake_device_1_health_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), diff --git a/tests/components/homekit/test_diagnostics.py b/tests/components/homekit/test_diagnostics.py index 954e415082f..1d6dec16991 100644 --- a/tests/components/homekit/test_diagnostics.py +++ b/tests/components/homekit/test_diagnostics.py @@ -264,6 +264,7 @@ async def test_config_entry_accessory( "context": {"id": ANY, "parent_id": None, "user_id": None}, "entity_id": "light.demo", "last_changed": ANY, + "last_reported": ANY, "last_updated": ANY, "state": "on", }, diff --git a/tests/components/homekit_controller/test_diagnostics.py b/tests/components/homekit_controller/test_diagnostics.py index c0a9ebbb8d4..f79c875385d 100644 --- a/tests/components/homekit_controller/test_diagnostics.py +++ b/tests/components/homekit_controller/test_diagnostics.py @@ -27,7 +27,9 @@ async def test_config_entry( diag = await get_diagnostics_for_config_entry(hass, hass_client, config_entry) - assert diag == snapshot(exclude=props("last_updated", "last_changed")) + assert diag == snapshot( + exclude=props("last_changed", "last_reported", "last_updated") + ) async def test_device( @@ -45,4 +47,6 @@ async def test_device( diag = await get_diagnostics_for_device(hass, hass_client, config_entry, device) - assert diag == snapshot(exclude=props("last_updated", "last_changed")) + assert diag == snapshot( + exclude=props("last_changed", "last_reported", "last_updated") + ) diff --git a/tests/components/homekit_controller/test_init.py b/tests/components/homekit_controller/test_init.py index b658b11f2cb..ec3e6216288 100644 --- a/tests/components/homekit_controller/test_init.py +++ b/tests/components/homekit_controller/test_init.py @@ -265,6 +265,7 @@ async def test_snapshots( state_dict = dict(state.as_dict()) state_dict.pop("context", None) state_dict.pop("last_changed", None) + state_dict.pop("last_reported", None) state_dict.pop("last_updated", None) state_dict["attributes"] = dict(state_dict["attributes"]) diff --git a/tests/components/homewizard/snapshots/test_button.ambr b/tests/components/homewizard/snapshots/test_button.ambr index 4bcda8f38ac..5ab108d344c 100644 --- a/tests/components/homewizard/snapshots/test_button.ambr +++ b/tests/components/homewizard/snapshots/test_button.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'button.device_identify', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) diff --git a/tests/components/homewizard/snapshots/test_number.ambr b/tests/components/homewizard/snapshots/test_number.ambr index 4ac6525dd72..1e0119cf0b9 100644 --- a/tests/components/homewizard/snapshots/test_number.ambr +++ b/tests/components/homewizard/snapshots/test_number.ambr @@ -12,6 +12,7 @@ 'context': , 'entity_id': 'number.device_status_light_brightness', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100.0', }) diff --git a/tests/components/homewizard/snapshots/test_sensor.ambr b/tests/components/homewizard/snapshots/test_sensor.ambr index 967b4e5fda7..c9f2000b4c9 100644 --- a/tests/components/homewizard/snapshots/test_sensor.ambr +++ b/tests/components/homewizard/snapshots/test_sensor.ambr @@ -298,6 +298,7 @@ 'context': , 'entity_id': 'sensor.device_apparent_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '74.052', }) @@ -382,6 +383,7 @@ 'context': , 'entity_id': 'sensor.device_current', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.273', }) @@ -466,6 +468,7 @@ 'context': , 'entity_id': 'sensor.device_energy_export', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '255.551', }) @@ -550,6 +553,7 @@ 'context': , 'entity_id': 'sensor.device_energy_import', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2.705', }) @@ -634,6 +638,7 @@ 'context': , 'entity_id': 'sensor.device_frequency', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '50', }) @@ -721,6 +726,7 @@ 'context': , 'entity_id': 'sensor.device_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-1058.296', }) @@ -805,6 +811,7 @@ 'context': , 'entity_id': 'sensor.device_power_factor', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '61.1', }) @@ -889,6 +896,7 @@ 'context': , 'entity_id': 'sensor.device_reactive_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-58.612', }) @@ -973,6 +981,7 @@ 'context': , 'entity_id': 'sensor.device_voltage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '228.472', }) @@ -1052,6 +1061,7 @@ 'context': , 'entity_id': 'sensor.device_wi_fi_ssid', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'My Wi-Fi', }) @@ -1135,6 +1145,7 @@ 'context': , 'entity_id': 'sensor.device_wi_fi_strength', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '92', }) @@ -1219,6 +1230,7 @@ 'context': , 'entity_id': 'sensor.device_apparent_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '7112.293', }) @@ -1303,6 +1315,7 @@ 'context': , 'entity_id': 'sensor.device_apparent_power_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -1387,6 +1400,7 @@ 'context': , 'entity_id': 'sensor.device_apparent_power_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3548.879', }) @@ -1471,6 +1485,7 @@ 'context': , 'entity_id': 'sensor.device_apparent_power_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3563.414', }) @@ -1555,6 +1570,7 @@ 'context': , 'entity_id': 'sensor.device_current', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '30.999', }) @@ -1639,6 +1655,7 @@ 'context': , 'entity_id': 'sensor.device_current_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -1723,6 +1740,7 @@ 'context': , 'entity_id': 'sensor.device_current_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '15.521', }) @@ -1807,6 +1825,7 @@ 'context': , 'entity_id': 'sensor.device_current_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '15.477', }) @@ -1891,6 +1910,7 @@ 'context': , 'entity_id': 'sensor.device_energy_export', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.523', }) @@ -1975,6 +1995,7 @@ 'context': , 'entity_id': 'sensor.device_energy_import', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.101', }) @@ -2059,6 +2080,7 @@ 'context': , 'entity_id': 'sensor.device_frequency', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '49.926', }) @@ -2146,6 +2168,7 @@ 'context': , 'entity_id': 'sensor.device_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-900.194', }) @@ -2230,6 +2253,7 @@ 'context': , 'entity_id': 'sensor.device_power_factor_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }) @@ -2314,6 +2338,7 @@ 'context': , 'entity_id': 'sensor.device_power_factor_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '99.9', }) @@ -2398,6 +2423,7 @@ 'context': , 'entity_id': 'sensor.device_power_factor_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '99.7', }) @@ -2485,6 +2511,7 @@ 'context': , 'entity_id': 'sensor.device_power_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-1058.296', }) @@ -2572,6 +2599,7 @@ 'context': , 'entity_id': 'sensor.device_power_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '158.102', }) @@ -2659,6 +2687,7 @@ 'context': , 'entity_id': 'sensor.device_power_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -2743,6 +2772,7 @@ 'context': , 'entity_id': 'sensor.device_reactive_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-429.025', }) @@ -2827,6 +2857,7 @@ 'context': , 'entity_id': 'sensor.device_reactive_power_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -2911,6 +2942,7 @@ 'context': , 'entity_id': 'sensor.device_reactive_power_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-166.675', }) @@ -2995,6 +3027,7 @@ 'context': , 'entity_id': 'sensor.device_reactive_power_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-262.35', }) @@ -3079,6 +3112,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '230.751', }) @@ -3163,6 +3197,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '228.391', }) @@ -3247,6 +3282,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '229.612', }) @@ -3326,6 +3362,7 @@ 'context': , 'entity_id': 'sensor.device_wi_fi_ssid', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'My Wi-Fi', }) @@ -3409,6 +3446,7 @@ 'context': , 'entity_id': 'sensor.device_wi_fi_strength', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '92', }) @@ -4627,6 +4665,7 @@ 'context': , 'entity_id': 'sensor.device_average_demand', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '123.0', }) @@ -4711,6 +4750,7 @@ 'context': , 'entity_id': 'sensor.device_current_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-4', }) @@ -4795,6 +4835,7 @@ 'context': , 'entity_id': 'sensor.device_current_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) @@ -4879,6 +4920,7 @@ 'context': , 'entity_id': 'sensor.device_current_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -4958,6 +5000,7 @@ 'context': , 'entity_id': 'sensor.device_dsmr_version', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '50', }) @@ -5042,6 +5085,7 @@ 'context': , 'entity_id': 'sensor.device_energy_export', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '13086.777', }) @@ -5126,6 +5170,7 @@ 'context': , 'entity_id': 'sensor.device_energy_export_tariff_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '4321.333', }) @@ -5210,6 +5255,7 @@ 'context': , 'entity_id': 'sensor.device_energy_export_tariff_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '8765.444', }) @@ -5294,6 +5340,7 @@ 'context': , 'entity_id': 'sensor.device_energy_export_tariff_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '8765.444', }) @@ -5378,6 +5425,7 @@ 'context': , 'entity_id': 'sensor.device_energy_export_tariff_4', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '8765.444', }) @@ -5462,6 +5510,7 @@ 'context': , 'entity_id': 'sensor.device_energy_import', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '13779.338', }) @@ -5546,6 +5595,7 @@ 'context': , 'entity_id': 'sensor.device_energy_import_tariff_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10830.511', }) @@ -5630,6 +5680,7 @@ 'context': , 'entity_id': 'sensor.device_energy_import_tariff_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2948.827', }) @@ -5714,6 +5765,7 @@ 'context': , 'entity_id': 'sensor.device_energy_import_tariff_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2948.827', }) @@ -5798,6 +5850,7 @@ 'context': , 'entity_id': 'sensor.device_energy_import_tariff_4', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2948.827', }) @@ -5882,6 +5935,7 @@ 'context': , 'entity_id': 'sensor.device_frequency', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '50', }) @@ -6036,6 +6090,7 @@ 'context': , 'entity_id': 'sensor.device_long_power_failures_detected', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }) @@ -6117,6 +6172,7 @@ 'context': , 'entity_id': 'sensor.device_peak_demand_current_month', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1111.0', }) @@ -6204,6 +6260,7 @@ 'context': , 'entity_id': 'sensor.device_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-123', }) @@ -6283,6 +6340,7 @@ 'context': , 'entity_id': 'sensor.device_power_failures_detected', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '4', }) @@ -6370,6 +6428,7 @@ 'context': , 'entity_id': 'sensor.device_power_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-123', }) @@ -6457,6 +6516,7 @@ 'context': , 'entity_id': 'sensor.device_power_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '456', }) @@ -6544,6 +6604,7 @@ 'context': , 'entity_id': 'sensor.device_power_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '123.456', }) @@ -6623,6 +6684,7 @@ 'context': , 'entity_id': 'sensor.device_smart_meter_identifier', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '00112233445566778899AABBCCDDEEFF', }) @@ -6702,6 +6764,7 @@ 'context': , 'entity_id': 'sensor.device_smart_meter_model', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'ISKRA 2M550T-101', }) @@ -6795,6 +6858,7 @@ 'context': , 'entity_id': 'sensor.device_tariff', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) @@ -7759,6 +7823,7 @@ 'context': , 'entity_id': 'sensor.device_total_water_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1234.567', }) @@ -7843,6 +7908,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '230.111', }) @@ -7927,6 +7993,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '230.222', }) @@ -8011,6 +8078,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '230.333', }) @@ -8090,6 +8158,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_sags_detected_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1', }) @@ -8169,6 +8238,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_sags_detected_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) @@ -8248,6 +8318,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_sags_detected_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3', }) @@ -8327,6 +8398,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_swells_detected_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '4', }) @@ -8406,6 +8478,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_swells_detected_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }) @@ -8485,6 +8558,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_swells_detected_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '6', }) @@ -8568,6 +8642,7 @@ 'context': , 'entity_id': 'sensor.device_water_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '12.345', }) @@ -8647,6 +8722,7 @@ 'context': , 'entity_id': 'sensor.device_wi_fi_ssid', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'My Wi-Fi', }) @@ -8730,6 +8806,7 @@ 'context': , 'entity_id': 'sensor.device_wi_fi_strength', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }) @@ -8882,6 +8959,7 @@ 'context': , 'entity_id': 'sensor.gas_meter_gas', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '111.111', }) @@ -9110,6 +9188,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_energy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '444.444', }) @@ -9337,6 +9416,7 @@ 'context': , 'entity_id': 'sensor.inlet_heat_meter_none', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '555.555', }) @@ -9640,6 +9720,7 @@ 'context': , 'entity_id': 'sensor.warm_water_meter_water', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '333.333', }) @@ -9868,6 +9949,7 @@ 'context': , 'entity_id': 'sensor.water_meter_water', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '222.222', }) @@ -10997,6 +11079,7 @@ 'context': , 'entity_id': 'sensor.device_average_demand', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -11081,6 +11164,7 @@ 'context': , 'entity_id': 'sensor.device_current_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -11165,6 +11249,7 @@ 'context': , 'entity_id': 'sensor.device_current_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -11249,6 +11334,7 @@ 'context': , 'entity_id': 'sensor.device_current_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -11333,6 +11419,7 @@ 'context': , 'entity_id': 'sensor.device_energy_export', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -11417,6 +11504,7 @@ 'context': , 'entity_id': 'sensor.device_energy_export_tariff_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -11501,6 +11589,7 @@ 'context': , 'entity_id': 'sensor.device_energy_export_tariff_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -11585,6 +11674,7 @@ 'context': , 'entity_id': 'sensor.device_energy_export_tariff_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -11669,6 +11759,7 @@ 'context': , 'entity_id': 'sensor.device_energy_export_tariff_4', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -11753,6 +11844,7 @@ 'context': , 'entity_id': 'sensor.device_energy_import', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -11837,6 +11929,7 @@ 'context': , 'entity_id': 'sensor.device_energy_import_tariff_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -11921,6 +12014,7 @@ 'context': , 'entity_id': 'sensor.device_energy_import_tariff_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -12005,6 +12099,7 @@ 'context': , 'entity_id': 'sensor.device_energy_import_tariff_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -12089,6 +12184,7 @@ 'context': , 'entity_id': 'sensor.device_energy_import_tariff_4', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -12173,6 +12269,7 @@ 'context': , 'entity_id': 'sensor.device_frequency', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -12252,6 +12349,7 @@ 'context': , 'entity_id': 'sensor.device_long_power_failures_detected', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -12416,6 +12514,7 @@ 'context': , 'entity_id': 'sensor.device_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -12495,6 +12594,7 @@ 'context': , 'entity_id': 'sensor.device_power_failures_detected', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -12582,6 +12682,7 @@ 'context': , 'entity_id': 'sensor.device_power_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -12669,6 +12770,7 @@ 'context': , 'entity_id': 'sensor.device_power_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -12756,6 +12858,7 @@ 'context': , 'entity_id': 'sensor.device_power_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -13720,6 +13823,7 @@ 'context': , 'entity_id': 'sensor.device_total_water_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -13804,6 +13908,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -13888,6 +13993,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -13972,6 +14078,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -14051,6 +14158,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_sags_detected_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -14130,6 +14238,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_sags_detected_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -14209,6 +14318,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_sags_detected_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -14288,6 +14398,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_swells_detected_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -14367,6 +14478,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_swells_detected_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -14446,6 +14558,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_swells_detected_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -14529,6 +14642,7 @@ 'context': , 'entity_id': 'sensor.device_water_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -14779,6 +14893,7 @@ 'context': , 'entity_id': 'sensor.device_energy_export', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -14863,6 +14978,7 @@ 'context': , 'entity_id': 'sensor.device_energy_import', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '63.651', }) @@ -14950,6 +15066,7 @@ 'context': , 'entity_id': 'sensor.device_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1457.277', }) @@ -15037,6 +15154,7 @@ 'context': , 'entity_id': 'sensor.device_power_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1457.277', }) @@ -15276,6 +15394,7 @@ 'context': , 'entity_id': 'sensor.device_wi_fi_ssid', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'My Wi-Fi', }) @@ -15359,6 +15478,7 @@ 'context': , 'entity_id': 'sensor.device_wi_fi_strength', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '94', }) @@ -15522,6 +15642,7 @@ 'context': , 'entity_id': 'sensor.device_total_water_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '17.014', }) @@ -15605,6 +15726,7 @@ 'context': , 'entity_id': 'sensor.device_water_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -15684,6 +15806,7 @@ 'context': , 'entity_id': 'sensor.device_wi_fi_ssid', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'My Wi-Fi', }) @@ -15767,6 +15890,7 @@ 'context': , 'entity_id': 'sensor.device_wi_fi_strength', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '84', }) @@ -16498,6 +16622,7 @@ 'context': , 'entity_id': 'sensor.device_apparent_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '74.052', }) @@ -16582,6 +16707,7 @@ 'context': , 'entity_id': 'sensor.device_current', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.273', }) @@ -16666,6 +16792,7 @@ 'context': , 'entity_id': 'sensor.device_energy_export', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '255.551', }) @@ -16750,6 +16877,7 @@ 'context': , 'entity_id': 'sensor.device_energy_import', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2.705', }) @@ -16834,6 +16962,7 @@ 'context': , 'entity_id': 'sensor.device_frequency', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '50', }) @@ -16921,6 +17050,7 @@ 'context': , 'entity_id': 'sensor.device_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-1058.296', }) @@ -17005,6 +17135,7 @@ 'context': , 'entity_id': 'sensor.device_power_factor', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '61.1', }) @@ -17172,6 +17303,7 @@ 'context': , 'entity_id': 'sensor.device_reactive_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-58.612', }) @@ -17416,6 +17548,7 @@ 'context': , 'entity_id': 'sensor.device_voltage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '228.472', }) @@ -17495,6 +17628,7 @@ 'context': , 'entity_id': 'sensor.device_wi_fi_ssid', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'My Wi-Fi', }) @@ -17578,6 +17712,7 @@ 'context': , 'entity_id': 'sensor.device_wi_fi_strength', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '92', }) @@ -19517,6 +19652,7 @@ 'context': , 'entity_id': 'sensor.device_apparent_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '7112.293', }) @@ -19601,6 +19737,7 @@ 'context': , 'entity_id': 'sensor.device_apparent_power_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -19685,6 +19822,7 @@ 'context': , 'entity_id': 'sensor.device_apparent_power_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3548.879', }) @@ -19769,6 +19907,7 @@ 'context': , 'entity_id': 'sensor.device_apparent_power_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3563.414', }) @@ -19853,6 +19992,7 @@ 'context': , 'entity_id': 'sensor.device_current', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '30.999', }) @@ -19937,6 +20077,7 @@ 'context': , 'entity_id': 'sensor.device_current_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -20021,6 +20162,7 @@ 'context': , 'entity_id': 'sensor.device_current_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '15.521', }) @@ -20105,6 +20247,7 @@ 'context': , 'entity_id': 'sensor.device_current_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '15.477', }) @@ -20189,6 +20332,7 @@ 'context': , 'entity_id': 'sensor.device_energy_export', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.523', }) @@ -20273,6 +20417,7 @@ 'context': , 'entity_id': 'sensor.device_energy_import', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.101', }) @@ -20357,6 +20502,7 @@ 'context': , 'entity_id': 'sensor.device_frequency', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '49.926', }) @@ -20444,6 +20590,7 @@ 'context': , 'entity_id': 'sensor.device_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-900.194', }) @@ -20528,6 +20675,7 @@ 'context': , 'entity_id': 'sensor.device_power_factor_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }) @@ -20612,6 +20760,7 @@ 'context': , 'entity_id': 'sensor.device_power_factor_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '99.9', }) @@ -20696,6 +20845,7 @@ 'context': , 'entity_id': 'sensor.device_power_factor_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '99.7', }) @@ -20783,6 +20933,7 @@ 'context': , 'entity_id': 'sensor.device_power_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-1058.296', }) @@ -20870,6 +21021,7 @@ 'context': , 'entity_id': 'sensor.device_power_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '158.102', }) @@ -20957,6 +21109,7 @@ 'context': , 'entity_id': 'sensor.device_power_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -21041,6 +21194,7 @@ 'context': , 'entity_id': 'sensor.device_reactive_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-429.025', }) @@ -21125,6 +21279,7 @@ 'context': , 'entity_id': 'sensor.device_reactive_power_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -21209,6 +21364,7 @@ 'context': , 'entity_id': 'sensor.device_reactive_power_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-166.675', }) @@ -21293,6 +21449,7 @@ 'context': , 'entity_id': 'sensor.device_reactive_power_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-262.35', }) @@ -21537,6 +21694,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_phase_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '230.751', }) @@ -21621,6 +21779,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_phase_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '228.391', }) @@ -21705,6 +21864,7 @@ 'context': , 'entity_id': 'sensor.device_voltage_phase_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '229.612', }) @@ -21784,6 +21944,7 @@ 'context': , 'entity_id': 'sensor.device_wi_fi_ssid', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'My Wi-Fi', }) @@ -21867,6 +22028,7 @@ 'context': , 'entity_id': 'sensor.device_wi_fi_strength', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '92', }) diff --git a/tests/components/homewizard/snapshots/test_switch.ambr b/tests/components/homewizard/snapshots/test_switch.ambr index 55d327c2244..3036cd3bc38 100644 --- a/tests/components/homewizard/snapshots/test_switch.ambr +++ b/tests/components/homewizard/snapshots/test_switch.ambr @@ -7,6 +7,7 @@ 'context': , 'entity_id': 'switch.device_cloud_connection', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -86,6 +87,7 @@ 'context': , 'entity_id': 'switch.device_cloud_connection', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -166,6 +168,7 @@ 'context': , 'entity_id': 'switch.device', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -245,6 +248,7 @@ 'context': , 'entity_id': 'switch.device_cloud_connection', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -324,6 +328,7 @@ 'context': , 'entity_id': 'switch.device_switch_lock', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -403,6 +408,7 @@ 'context': , 'entity_id': 'switch.device_cloud_connection', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -482,6 +488,7 @@ 'context': , 'entity_id': 'switch.device_cloud_connection', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/homeworks/snapshots/test_binary_sensor.ambr b/tests/components/homeworks/snapshots/test_binary_sensor.ambr index effa4315861..c301347d05d 100644 --- a/tests/components/homeworks/snapshots/test_binary_sensor.ambr +++ b/tests/components/homeworks/snapshots/test_binary_sensor.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'binary_sensor.foyer_keypad_morning', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -21,6 +22,7 @@ 'context': , 'entity_id': 'binary_sensor.foyer_keypad_morning', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -34,6 +36,7 @@ 'context': , 'entity_id': 'binary_sensor.foyer_keypad_morning', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/homeworks/snapshots/test_light.ambr b/tests/components/homeworks/snapshots/test_light.ambr index 49f7f561bc0..7117a9d9b48 100644 --- a/tests/components/homeworks/snapshots/test_light.ambr +++ b/tests/components/homeworks/snapshots/test_light.ambr @@ -14,6 +14,7 @@ 'context': , 'entity_id': 'light.foyer_sconces', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -33,6 +34,7 @@ 'context': , 'entity_id': 'light.foyer_sconces', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/husqvarna_automower/snapshots/test_binary_sensor.ambr b/tests/components/husqvarna_automower/snapshots/test_binary_sensor.ambr index f586cca1ba5..d677f504390 100644 --- a/tests/components/husqvarna_automower/snapshots/test_binary_sensor.ambr +++ b/tests/components/husqvarna_automower/snapshots/test_binary_sensor.ambr @@ -177,6 +177,7 @@ 'context': , 'entity_id': 'binary_sensor.test_mower_1_charging', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -222,6 +223,7 @@ 'context': , 'entity_id': 'binary_sensor.test_mower_1_leaving_dock', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -267,6 +269,7 @@ 'context': , 'entity_id': 'binary_sensor.test_mower_1_returning_to_dock', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/husqvarna_automower/snapshots/test_device_tracker.ambr b/tests/components/husqvarna_automower/snapshots/test_device_tracker.ambr index 636b6599380..156eee9b8df 100644 --- a/tests/components/husqvarna_automower/snapshots/test_device_tracker.ambr +++ b/tests/components/husqvarna_automower/snapshots/test_device_tracker.ambr @@ -44,6 +44,7 @@ 'context': , 'entity_id': 'device_tracker.test_mower_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'not_home', }) diff --git a/tests/components/husqvarna_automower/snapshots/test_sensor.ambr b/tests/components/husqvarna_automower/snapshots/test_sensor.ambr index 2e6dfcc52f0..77994d7e0d8 100644 --- a/tests/components/husqvarna_automower/snapshots/test_sensor.ambr +++ b/tests/components/husqvarna_automower/snapshots/test_sensor.ambr @@ -45,6 +45,7 @@ 'context': , 'entity_id': 'sensor.test_mower_1_battery', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }) @@ -98,6 +99,7 @@ 'context': , 'entity_id': 'sensor.test_mower_1_cutting_blade_usage_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.034', }) @@ -159,6 +161,7 @@ 'context': , 'entity_id': 'sensor.test_mower_1_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'main_area', }) @@ -205,6 +208,7 @@ 'context': , 'entity_id': 'sensor.test_mower_1_next_start', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2023-06-05T19:00:00+00:00', }) @@ -253,6 +257,7 @@ 'context': , 'entity_id': 'sensor.test_mower_1_number_of_charging_cycles', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1380', }) @@ -301,6 +306,7 @@ 'context': , 'entity_id': 'sensor.test_mower_1_number_of_collisions', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '11396', }) @@ -354,6 +360,7 @@ 'context': , 'entity_id': 'sensor.test_mower_1_total_charging_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1204.000', }) @@ -407,6 +414,7 @@ 'context': , 'entity_id': 'sensor.test_mower_1_total_cutting_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1165.000', }) @@ -460,6 +468,7 @@ 'context': , 'entity_id': 'sensor.test_mower_1_total_drive_distance', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1780.272', }) @@ -513,6 +522,7 @@ 'context': , 'entity_id': 'sensor.test_mower_1_total_running_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1268.000', }) @@ -566,6 +576,7 @@ 'context': , 'entity_id': 'sensor.test_mower_1_total_searching_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '103.000', }) diff --git a/tests/components/husqvarna_automower/snapshots/test_switch.ambr b/tests/components/husqvarna_automower/snapshots/test_switch.ambr index b1629a4cf99..c54997fcf06 100644 --- a/tests/components/husqvarna_automower/snapshots/test_switch.ambr +++ b/tests/components/husqvarna_automower/snapshots/test_switch.ambr @@ -40,6 +40,7 @@ 'context': , 'entity_id': 'switch.test_mower_1_enable_schedule', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/kitchen_sink/snapshots/test_lawn_mower.ambr b/tests/components/kitchen_sink/snapshots/test_lawn_mower.ambr index 879e78d5534..4189de18ce4 100644 --- a/tests/components/kitchen_sink/snapshots/test_lawn_mower.ambr +++ b/tests/components/kitchen_sink/snapshots/test_lawn_mower.ambr @@ -9,6 +9,7 @@ 'context': , 'entity_id': 'lawn_mower.mower_can_do_all', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'docked', }), @@ -20,6 +21,7 @@ 'context': , 'entity_id': 'lawn_mower.mower_can_dock', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'mowing', }), @@ -31,6 +33,7 @@ 'context': , 'entity_id': 'lawn_mower.mower_can_mow', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'docked', }), @@ -42,6 +45,7 @@ 'context': , 'entity_id': 'lawn_mower.mower_can_pause', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'docked', }), @@ -53,6 +57,7 @@ 'context': , 'entity_id': 'lawn_mower.mower_is_paused', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'paused', }), diff --git a/tests/components/kitchen_sink/snapshots/test_lock.ambr b/tests/components/kitchen_sink/snapshots/test_lock.ambr index 9303401bdd5..616d778e6fd 100644 --- a/tests/components/kitchen_sink/snapshots/test_lock.ambr +++ b/tests/components/kitchen_sink/snapshots/test_lock.ambr @@ -9,6 +9,7 @@ 'context': , 'entity_id': 'lock.another_basic_lock', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unlocked', }), @@ -20,6 +21,7 @@ 'context': , 'entity_id': 'lock.another_openable_lock', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unlocked', }), @@ -31,6 +33,7 @@ 'context': , 'entity_id': 'lock.basic_lock', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'locked', }), @@ -42,6 +45,7 @@ 'context': , 'entity_id': 'lock.openable_lock', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'locked', }), diff --git a/tests/components/kitchen_sink/snapshots/test_sensor.ambr b/tests/components/kitchen_sink/snapshots/test_sensor.ambr index 776a0c03369..bbf88c84eca 100644 --- a/tests/components/kitchen_sink/snapshots/test_sensor.ambr +++ b/tests/components/kitchen_sink/snapshots/test_sensor.ambr @@ -11,6 +11,7 @@ 'context': , 'entity_id': 'sensor.outlet_1_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '50', }), @@ -24,6 +25,7 @@ 'context': , 'entity_id': 'sensor.outlet_2_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1500', }), @@ -36,6 +38,7 @@ 'context': , 'entity_id': 'sensor.statistics_issues_issue_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }), @@ -48,6 +51,7 @@ 'context': , 'entity_id': 'sensor.statistics_issues_issue_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }), @@ -59,6 +63,7 @@ 'context': , 'entity_id': 'sensor.statistics_issues_issue_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }), diff --git a/tests/components/kitchen_sink/snapshots/test_switch.ambr b/tests/components/kitchen_sink/snapshots/test_switch.ambr index 89688e9e54e..1cd903a59d6 100644 --- a/tests/components/kitchen_sink/snapshots/test_switch.ambr +++ b/tests/components/kitchen_sink/snapshots/test_switch.ambr @@ -7,6 +7,7 @@ 'context': , 'entity_id': 'switch.outlet_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -112,6 +113,7 @@ 'context': , 'entity_id': 'switch.outlet_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/lamarzocco/snapshots/test_binary_sensor.ambr b/tests/components/lamarzocco/snapshots/test_binary_sensor.ambr index c05610a47a2..f08c2c28851 100644 --- a/tests/components/lamarzocco/snapshots/test_binary_sensor.ambr +++ b/tests/components/lamarzocco/snapshots/test_binary_sensor.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'binary_sensor.gs01234_brewing_active', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -54,6 +55,7 @@ 'context': , 'entity_id': 'binary_sensor.gs01234_water_tank_empty', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/lamarzocco/snapshots/test_button.ambr b/tests/components/lamarzocco/snapshots/test_button.ambr index 5cd38d914b7..023039cc6f7 100644 --- a/tests/components/lamarzocco/snapshots/test_button.ambr +++ b/tests/components/lamarzocco/snapshots/test_button.ambr @@ -7,6 +7,7 @@ 'context': , 'entity_id': 'button.gs01234_start_backflush', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) diff --git a/tests/components/lamarzocco/snapshots/test_calendar.ambr b/tests/components/lamarzocco/snapshots/test_calendar.ambr index ee318a7fc67..676c0f1b2ad 100644 --- a/tests/components/lamarzocco/snapshots/test_calendar.ambr +++ b/tests/components/lamarzocco/snapshots/test_calendar.ambr @@ -97,6 +97,7 @@ 'context': , 'entity_id': 'calendar.gs01234_auto_on_off_schedule', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/lamarzocco/snapshots/test_number.ambr b/tests/components/lamarzocco/snapshots/test_number.ambr index 2ff24c4d5bf..da35bf718f6 100644 --- a/tests/components/lamarzocco/snapshots/test_number.ambr +++ b/tests/components/lamarzocco/snapshots/test_number.ambr @@ -13,6 +13,7 @@ 'context': , 'entity_id': 'number.gs01234_coffee_target_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '95', }) @@ -69,6 +70,7 @@ 'context': , 'entity_id': 'number.gs01234_steam_target_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '128', }) @@ -125,6 +127,7 @@ 'context': , 'entity_id': 'number.gs01234_steam_target_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '128', }) @@ -181,6 +184,7 @@ 'context': , 'entity_id': 'number.gs01234_tea_water_duration', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1023', }) @@ -237,6 +241,7 @@ 'context': , 'entity_id': 'number.gs01234_tea_water_duration', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1023', }) @@ -292,6 +297,7 @@ 'context': , 'entity_id': 'number.gs01234_dose_key_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1023', }) @@ -309,6 +315,7 @@ 'context': , 'entity_id': 'number.gs01234_dose_key_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1023', }) @@ -326,6 +333,7 @@ 'context': , 'entity_id': 'number.gs01234_dose_key_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1023', }) @@ -343,6 +351,7 @@ 'context': , 'entity_id': 'number.gs01234_dose_key_4', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1023', }) @@ -361,6 +370,7 @@ 'context': , 'entity_id': 'number.gs01234_prebrew_off_time_key_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3', }) @@ -379,6 +389,7 @@ 'context': , 'entity_id': 'number.gs01234_prebrew_off_time_key_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3', }) @@ -397,6 +408,7 @@ 'context': , 'entity_id': 'number.gs01234_prebrew_off_time_key_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3', }) @@ -415,6 +427,7 @@ 'context': , 'entity_id': 'number.gs01234_prebrew_off_time_key_4', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3', }) @@ -433,6 +446,7 @@ 'context': , 'entity_id': 'number.gs01234_prebrew_on_time_key_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }) @@ -451,6 +465,7 @@ 'context': , 'entity_id': 'number.gs01234_prebrew_on_time_key_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }) @@ -469,6 +484,7 @@ 'context': , 'entity_id': 'number.gs01234_prebrew_on_time_key_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }) @@ -487,6 +503,7 @@ 'context': , 'entity_id': 'number.gs01234_prebrew_on_time_key_4', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }) @@ -505,6 +522,7 @@ 'context': , 'entity_id': 'number.gs01234_preinfusion_time_key_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -523,6 +541,7 @@ 'context': , 'entity_id': 'number.gs01234_preinfusion_time_key_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -541,6 +560,7 @@ 'context': , 'entity_id': 'number.gs01234_preinfusion_time_key_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -559,6 +579,7 @@ 'context': , 'entity_id': 'number.gs01234_preinfusion_time_key_4', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -577,6 +598,7 @@ 'context': , 'entity_id': 'number.lm01234_prebrew_off_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3', }) @@ -633,6 +655,7 @@ 'context': , 'entity_id': 'number.mr01234_prebrew_off_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3', }) @@ -689,6 +712,7 @@ 'context': , 'entity_id': 'number.lm01234_prebrew_on_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }) @@ -745,6 +769,7 @@ 'context': , 'entity_id': 'number.mr01234_prebrew_on_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }) @@ -801,6 +826,7 @@ 'context': , 'entity_id': 'number.lm01234_preinfusion_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -857,6 +883,7 @@ 'context': , 'entity_id': 'number.mr01234_preinfusion_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) diff --git a/tests/components/lamarzocco/snapshots/test_select.ambr b/tests/components/lamarzocco/snapshots/test_select.ambr index e592d25c85c..1ee5ae7115f 100644 --- a/tests/components/lamarzocco/snapshots/test_select.ambr +++ b/tests/components/lamarzocco/snapshots/test_select.ambr @@ -12,6 +12,7 @@ 'context': , 'entity_id': 'select.gs01234_prebrew_infusion_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -68,6 +69,7 @@ 'context': , 'entity_id': 'select.lm01234_prebrew_infusion_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -124,6 +126,7 @@ 'context': , 'entity_id': 'select.mr01234_prebrew_infusion_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -180,6 +183,7 @@ 'context': , 'entity_id': 'select.mr01234_steam_level', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3', }) diff --git a/tests/components/lamarzocco/snapshots/test_sensor.ambr b/tests/components/lamarzocco/snapshots/test_sensor.ambr index a97244f5472..71422b8b850 100644 --- a/tests/components/lamarzocco/snapshots/test_sensor.ambr +++ b/tests/components/lamarzocco/snapshots/test_sensor.ambr @@ -48,6 +48,7 @@ 'context': , 'entity_id': 'sensor.gs01234_current_coffee_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '93', }) @@ -101,6 +102,7 @@ 'context': , 'entity_id': 'sensor.gs01234_current_steam_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '113', }) @@ -151,6 +153,7 @@ 'context': , 'entity_id': 'sensor.gs01234_shot_timer', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -200,6 +203,7 @@ 'context': , 'entity_id': 'sensor.gs01234_total_coffees_made', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '13', }) @@ -249,6 +253,7 @@ 'context': , 'entity_id': 'sensor.gs01234_total_flushes_made', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '69', }) diff --git a/tests/components/lamarzocco/snapshots/test_switch.ambr b/tests/components/lamarzocco/snapshots/test_switch.ambr index 7e6edb148b2..1639e8fce94 100644 --- a/tests/components/lamarzocco/snapshots/test_switch.ambr +++ b/tests/components/lamarzocco/snapshots/test_switch.ambr @@ -37,6 +37,7 @@ 'context': , 'entity_id': 'switch.gs01234', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -82,6 +83,7 @@ 'context': , 'entity_id': 'switch.gs01234_auto_on_off', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -127,6 +129,7 @@ 'context': , 'entity_id': 'switch.gs01234_steam_boiler', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/lamarzocco/snapshots/test_update.ambr b/tests/components/lamarzocco/snapshots/test_update.ambr index bd7ccc2cf59..811b1a6f598 100644 --- a/tests/components/lamarzocco/snapshots/test_update.ambr +++ b/tests/components/lamarzocco/snapshots/test_update.ambr @@ -18,6 +18,7 @@ 'context': , 'entity_id': 'update.gs01234_gateway_firmware', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -74,6 +75,7 @@ 'context': , 'entity_id': 'update.gs01234_machine_firmware', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/landisgyr_heat_meter/snapshots/test_sensor.ambr b/tests/components/landisgyr_heat_meter/snapshots/test_sensor.ambr index 5d8b703cdcd..8def1c83a85 100644 --- a/tests/components/landisgyr_heat_meter/snapshots/test_sensor.ambr +++ b/tests/components/landisgyr_heat_meter/snapshots/test_sensor.ambr @@ -12,6 +12,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_volume_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '456.0', }), @@ -26,6 +27,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_heat_usage_gj', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '123.0', }), @@ -39,6 +41,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_heat_previous_year_gj', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '111.0', }), @@ -52,6 +55,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_volume_usage_previous_year', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '450.0', }), @@ -63,6 +67,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_ownership_number', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '123a', }), @@ -74,6 +79,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_error_number', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }), @@ -85,6 +91,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_device_number', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'abc1', }), @@ -97,6 +104,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_measurement_period_minutes', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '60', }), @@ -109,6 +117,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_power_max', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '22.1', }), @@ -121,6 +130,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_power_max_previous_year', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '22.4', }), @@ -133,6 +143,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_flowrate_max', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.744', }), @@ -145,6 +156,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_flowrate_max_previous_year', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.743', }), @@ -157,6 +169,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_return_temperature_max', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '96.1', }), @@ -169,6 +182,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_return_temperature_max_previous_year', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '96.2', }), @@ -181,6 +195,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_flow_temperature_max', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '98.5', }), @@ -193,6 +208,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_flow_temperature_max_previous_year', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '98.4', }), @@ -205,6 +221,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_operating_hours', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '115575', }), @@ -217,6 +234,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_flow_hours', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '30242', }), @@ -229,6 +247,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_fault_hours', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }), @@ -241,6 +260,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_fault_hours_previous_year', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }), @@ -252,6 +272,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_yearly_set_day', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '01-01', }), @@ -263,6 +284,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_monthly_set_day', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '01', }), @@ -275,6 +297,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_meter_date_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2022-05-19T19:41:17+00:00', }), @@ -287,6 +310,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_measuring_range', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.5', }), @@ -297,6 +321,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_settings_and_firmware', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0 1 0 0000 CECV CECV 1 5.16 5.16 F 101008 040404 08 0', }), @@ -315,6 +340,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_heat_usage_mwh', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '123.0', }), @@ -329,6 +355,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_volume_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '456.0', }), @@ -342,6 +369,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_heat_previous_year_mwh', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '111.0', }), @@ -355,6 +383,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_volume_usage_previous_year', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '450.0', }), @@ -366,6 +395,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_ownership_number', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '123a', }), @@ -377,6 +407,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_error_number', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }), @@ -388,6 +419,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_device_number', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'abc1', }), @@ -400,6 +432,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_measurement_period_minutes', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '60', }), @@ -412,6 +445,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_power_max', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '22.1', }), @@ -424,6 +458,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_power_max_previous_year', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '22.4', }), @@ -436,6 +471,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_flowrate_max', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.744', }), @@ -448,6 +484,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_flowrate_max_previous_year', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.743', }), @@ -460,6 +497,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_return_temperature_max', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '96.1', }), @@ -472,6 +510,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_return_temperature_max_previous_year', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '96.2', }), @@ -484,6 +523,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_flow_temperature_max', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '98.5', }), @@ -496,6 +536,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_flow_temperature_max_previous_year', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '98.4', }), @@ -508,6 +549,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_operating_hours', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '115575', }), @@ -520,6 +562,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_flow_hours', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '30242', }), @@ -532,6 +575,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_fault_hours', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }), @@ -544,6 +588,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_fault_hours_previous_year', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }), @@ -555,6 +600,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_yearly_set_day', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '01-01', }), @@ -566,6 +612,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_monthly_set_day', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '01', }), @@ -578,6 +625,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_meter_date_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2022-05-19T19:41:17+00:00', }), @@ -590,6 +638,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_measuring_range', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.5', }), @@ -600,6 +649,7 @@ 'context': , 'entity_id': 'sensor.heat_meter_settings_and_firmware', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0 1 0 0000 CECV CECV 1 5.16 5.16 F 101008 040404 08 0', }), diff --git a/tests/components/lastfm/snapshots/test_sensor.ambr b/tests/components/lastfm/snapshots/test_sensor.ambr index 33f9b7a56fa..c05c34b24ee 100644 --- a/tests/components/lastfm/snapshots/test_sensor.ambr +++ b/tests/components/lastfm/snapshots/test_sensor.ambr @@ -12,6 +12,7 @@ 'context': , 'entity_id': 'sensor.lastfm_testaccount1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'artist - title', }) @@ -29,6 +30,7 @@ 'context': , 'entity_id': 'sensor.lastfm_testaccount1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Not Scrobbling', }) diff --git a/tests/components/logbook/test_init.py b/tests/components/logbook/test_init.py index 732437107de..d752b896401 100644 --- a/tests/components/logbook/test_init.py +++ b/tests/components/logbook/test_init.py @@ -294,14 +294,25 @@ def create_state_changed_event( state, attributes=None, last_changed=None, + last_reported=None, last_updated=None, ): """Create state changed event.""" old_state = ha.State( - entity_id, "old", attributes, last_changed, last_updated + entity_id, + "old", + attributes, + last_changed=last_changed, + last_reported=last_reported, + last_updated=last_updated, ).as_dict() new_state = ha.State( - entity_id, state, attributes, last_changed, last_updated + entity_id, + state, + attributes, + last_changed=last_changed, + last_reported=last_reported, + last_updated=last_updated, ).as_dict() return create_state_changed_event_from_old_new( diff --git a/tests/components/melissa/snapshots/test_climate.ambr b/tests/components/melissa/snapshots/test_climate.ambr index 40e757d1561..5d0752ccffe 100644 --- a/tests/components/melissa/snapshots/test_climate.ambr +++ b/tests/components/melissa/snapshots/test_climate.ambr @@ -28,6 +28,7 @@ 'context': , 'entity_id': 'climate.melissa_12345678', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'heat', }) diff --git a/tests/components/minecraft_server/snapshots/test_binary_sensor.ambr b/tests/components/minecraft_server/snapshots/test_binary_sensor.ambr index 00eae5a4bdd..2e4bf49089c 100644 --- a/tests/components/minecraft_server/snapshots/test_binary_sensor.ambr +++ b/tests/components/minecraft_server/snapshots/test_binary_sensor.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'binary_sensor.minecraft_server_status', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -21,6 +22,7 @@ 'context': , 'entity_id': 'binary_sensor.minecraft_server_status', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -34,6 +36,7 @@ 'context': , 'entity_id': 'binary_sensor.minecraft_server_status', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -47,6 +50,7 @@ 'context': , 'entity_id': 'binary_sensor.minecraft_server_status', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/minecraft_server/snapshots/test_sensor.ambr b/tests/components/minecraft_server/snapshots/test_sensor.ambr index 32cf0f1e935..47d638adf79 100644 --- a/tests/components/minecraft_server/snapshots/test_sensor.ambr +++ b/tests/components/minecraft_server/snapshots/test_sensor.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_latency', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }) @@ -21,6 +22,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_players_online', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3', }) @@ -34,6 +36,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_players_max', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10', }) @@ -46,6 +49,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_world_message', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Dummy MOTD', }) @@ -58,6 +62,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_version', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Dummy Version', }) @@ -70,6 +75,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_protocol_version', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '123', }) @@ -82,6 +88,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_map_name', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Dummy Map Name', }) @@ -94,6 +101,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_game_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Dummy Game Mode', }) @@ -106,6 +114,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_edition', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'MCPE', }) @@ -119,6 +128,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_latency', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }) @@ -137,6 +147,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_players_online', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3', }) @@ -150,6 +161,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_players_max', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10', }) @@ -162,6 +174,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_world_message', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Dummy MOTD', }) @@ -174,6 +187,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_version', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Dummy Version', }) @@ -186,6 +200,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_protocol_version', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '123', }) @@ -199,6 +214,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_latency', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }) @@ -212,6 +228,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_players_online', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3', }) @@ -225,6 +242,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_players_max', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10', }) @@ -237,6 +255,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_world_message', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Dummy MOTD', }) @@ -249,6 +268,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_version', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Dummy Version', }) @@ -261,6 +281,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_protocol_version', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '123', }) @@ -273,6 +294,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_map_name', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Dummy Map Name', }) @@ -285,6 +307,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_game_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Dummy Game Mode', }) @@ -297,6 +320,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_edition', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'MCPE', }) @@ -310,6 +334,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_latency', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }) @@ -328,6 +353,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_players_online', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3', }) @@ -341,6 +367,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_players_max', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10', }) @@ -353,6 +380,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_world_message', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Dummy MOTD', }) @@ -365,6 +393,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_version', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Dummy Version', }) @@ -377,6 +406,7 @@ 'context': , 'entity_id': 'sensor.minecraft_server_protocol_version', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '123', }) diff --git a/tests/components/mqtt/test_diagnostics.py b/tests/components/mqtt/test_diagnostics.py index 8959ad0f719..f14c1bd5fc4 100644 --- a/tests/components/mqtt/test_diagnostics.py +++ b/tests/components/mqtt/test_diagnostics.py @@ -108,6 +108,7 @@ async def test_entry_diagnostics( "attributes": {"friendly_name": "MQTT Sensor"}, "entity_id": "sensor.none_mqtt_sensor", "last_changed": ANY, + "last_reported": ANY, "last_updated": ANY, "state": "unknown", }, @@ -234,6 +235,7 @@ async def test_redact_diagnostics( }, "entity_id": "device_tracker.mqtt_unique", "last_changed": ANY, + "last_reported": ANY, "last_updated": ANY, "state": "home", }, diff --git a/tests/components/mqtt_eventstream/test_init.py b/tests/components/mqtt_eventstream/test_init.py index 2045a14bf1f..24b4a83c425 100644 --- a/tests/components/mqtt_eventstream/test_init.py +++ b/tests/components/mqtt_eventstream/test_init.py @@ -104,11 +104,12 @@ async def test_state_changed_event_sends_message( event = {} event["event_type"] = EVENT_STATE_CHANGED new_state = { + "attributes": {}, + "entity_id": e_id, + "last_changed": now.isoformat(), + "last_reported": now.isoformat(), "last_updated": now.isoformat(), "state": "on", - "entity_id": e_id, - "attributes": {}, - "last_changed": now.isoformat(), } event["event_data"] = {"new_state": new_state, "entity_id": e_id} diff --git a/tests/components/netatmo/snapshots/test_camera.ambr b/tests/components/netatmo/snapshots/test_camera.ambr index d989d029aa8..94a5ded5031 100644 --- a/tests/components/netatmo/snapshots/test_camera.ambr +++ b/tests/components/netatmo/snapshots/test_camera.ambr @@ -55,6 +55,7 @@ 'context': , 'entity_id': 'camera.front', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'streaming', }) @@ -115,6 +116,7 @@ 'context': , 'entity_id': 'camera.hall', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'streaming', }) @@ -173,6 +175,7 @@ 'context': , 'entity_id': 'camera.netatmo_doorbell', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'idle', }) diff --git a/tests/components/netatmo/snapshots/test_climate.ambr b/tests/components/netatmo/snapshots/test_climate.ambr index 32f9209c3c2..327595e90a5 100644 --- a/tests/components/netatmo/snapshots/test_climate.ambr +++ b/tests/components/netatmo/snapshots/test_climate.ambr @@ -69,6 +69,7 @@ 'context': , 'entity_id': 'climate.bureau', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -149,6 +150,7 @@ 'context': , 'entity_id': 'climate.cocina', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'auto', }) @@ -228,6 +230,7 @@ 'context': , 'entity_id': 'climate.corridor', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'auto', }) @@ -308,6 +311,7 @@ 'context': , 'entity_id': 'climate.entrada', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'auto', }) @@ -389,6 +393,7 @@ 'context': , 'entity_id': 'climate.livingroom', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'auto', }) diff --git a/tests/components/netatmo/snapshots/test_cover.ambr b/tests/components/netatmo/snapshots/test_cover.ambr index c05e246c02c..e907985ab39 100644 --- a/tests/components/netatmo/snapshots/test_cover.ambr +++ b/tests/components/netatmo/snapshots/test_cover.ambr @@ -44,6 +44,7 @@ 'context': , 'entity_id': 'cover.bubendorff_blind', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'closed', }) @@ -93,6 +94,7 @@ 'context': , 'entity_id': 'cover.entrance_blinds', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'closed', }) diff --git a/tests/components/netatmo/snapshots/test_fan.ambr b/tests/components/netatmo/snapshots/test_fan.ambr index d750dffb1fe..958a8f79704 100644 --- a/tests/components/netatmo/snapshots/test_fan.ambr +++ b/tests/components/netatmo/snapshots/test_fan.ambr @@ -52,6 +52,7 @@ 'context': , 'entity_id': 'fan.centralized_ventilation_controler', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/netatmo/snapshots/test_light.ambr b/tests/components/netatmo/snapshots/test_light.ambr index ed628e4fd7a..dabc7f8528f 100644 --- a/tests/components/netatmo/snapshots/test_light.ambr +++ b/tests/components/netatmo/snapshots/test_light.ambr @@ -50,6 +50,7 @@ 'context': , 'entity_id': 'light.bathroom_light', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -104,6 +105,7 @@ 'context': , 'entity_id': 'light.front', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -160,6 +162,7 @@ 'context': , 'entity_id': 'light.unknown_00_11_22_33_00_11_45_fe', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/netatmo/snapshots/test_select.ambr b/tests/components/netatmo/snapshots/test_select.ambr index 65c98ec29f5..0a95049957e 100644 --- a/tests/components/netatmo/snapshots/test_select.ambr +++ b/tests/components/netatmo/snapshots/test_select.ambr @@ -50,6 +50,7 @@ 'context': , 'entity_id': 'select.myhome', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Default', }) diff --git a/tests/components/netatmo/snapshots/test_sensor.ambr b/tests/components/netatmo/snapshots/test_sensor.ambr index 8983a1ecf13..df92c644588 100644 --- a/tests/components/netatmo/snapshots/test_sensor.ambr +++ b/tests/components/netatmo/snapshots/test_sensor.ambr @@ -48,6 +48,7 @@ 'context': , 'entity_id': 'sensor.baby_bedroom_co2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1053', }) @@ -97,6 +98,7 @@ 'context': , 'entity_id': 'sensor.baby_bedroom_health', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Fine', }) @@ -150,6 +152,7 @@ 'context': , 'entity_id': 'sensor.baby_bedroom_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '66', }) @@ -203,6 +206,7 @@ 'context': , 'entity_id': 'sensor.baby_bedroom_noise', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '45', }) @@ -259,6 +263,7 @@ 'context': , 'entity_id': 'sensor.baby_bedroom_pressure', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1021.4', }) @@ -384,6 +389,7 @@ 'context': , 'entity_id': 'sensor.baby_bedroom_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '21.6', }) @@ -507,6 +513,7 @@ 'context': , 'entity_id': 'sensor.bedroom_co2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -554,6 +561,7 @@ 'context': , 'entity_id': 'sensor.bedroom_health', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -605,6 +613,7 @@ 'context': , 'entity_id': 'sensor.bedroom_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -656,6 +665,7 @@ 'context': , 'entity_id': 'sensor.bedroom_noise', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -710,6 +720,7 @@ 'context': , 'entity_id': 'sensor.bedroom_pressure', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -833,6 +844,7 @@ 'context': , 'entity_id': 'sensor.bedroom_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -956,6 +968,7 @@ 'context': , 'entity_id': 'sensor.bureau_modulate_battery_percent', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '90', }) @@ -1007,6 +1020,7 @@ 'context': , 'entity_id': 'sensor.cold_water_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -1094,6 +1108,7 @@ 'context': , 'entity_id': 'sensor.consumption_meter_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '476', }) @@ -1181,6 +1196,7 @@ 'context': , 'entity_id': 'sensor.corridor_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '67', }) @@ -1232,6 +1248,7 @@ 'context': , 'entity_id': 'sensor.ecocompteur_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -1319,6 +1336,7 @@ 'context': , 'entity_id': 'sensor.gas_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -1522,6 +1540,7 @@ 'context': , 'entity_id': 'sensor.home_avg_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '63.2', }) @@ -1578,6 +1597,7 @@ 'context': , 'entity_id': 'sensor.home_avg_pressure', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1010.4', }) @@ -1631,6 +1651,7 @@ 'context': , 'entity_id': 'sensor.home_avg_rain', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.1', }) @@ -1722,6 +1743,7 @@ 'context': , 'entity_id': 'sensor.home_avg_rain_today', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '11.3', }) @@ -1775,6 +1797,7 @@ 'context': , 'entity_id': 'sensor.home_avg_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '22.7', }) @@ -1828,6 +1851,7 @@ 'context': , 'entity_id': 'sensor.home_avg_wind_strength', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '15.0', }) @@ -1995,6 +2019,7 @@ 'context': , 'entity_id': 'sensor.home_max_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '76', }) @@ -2051,6 +2076,7 @@ 'context': , 'entity_id': 'sensor.home_max_pressure', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1014.4', }) @@ -2104,6 +2130,7 @@ 'context': , 'entity_id': 'sensor.home_max_rain', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.5', }) @@ -2195,6 +2222,7 @@ 'context': , 'entity_id': 'sensor.home_max_rain_today', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '12.322', }) @@ -2248,6 +2276,7 @@ 'context': , 'entity_id': 'sensor.home_max_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '27.4', }) @@ -2301,6 +2330,7 @@ 'context': , 'entity_id': 'sensor.home_max_wind_strength', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '15', }) @@ -2352,6 +2382,7 @@ 'context': , 'entity_id': 'sensor.hot_water_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -2439,6 +2470,7 @@ 'context': , 'entity_id': 'sensor.kitchen_co2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -2486,6 +2518,7 @@ 'context': , 'entity_id': 'sensor.kitchen_health', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -2537,6 +2570,7 @@ 'context': , 'entity_id': 'sensor.kitchen_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -2588,6 +2622,7 @@ 'context': , 'entity_id': 'sensor.kitchen_noise', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -2642,6 +2677,7 @@ 'context': , 'entity_id': 'sensor.kitchen_pressure', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -2765,6 +2801,7 @@ 'context': , 'entity_id': 'sensor.kitchen_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -2888,6 +2925,7 @@ 'context': , 'entity_id': 'sensor.line_1_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -2975,6 +3013,7 @@ 'context': , 'entity_id': 'sensor.line_2_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -3062,6 +3101,7 @@ 'context': , 'entity_id': 'sensor.line_3_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -3149,6 +3189,7 @@ 'context': , 'entity_id': 'sensor.line_4_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -3236,6 +3277,7 @@ 'context': , 'entity_id': 'sensor.line_5_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -3323,6 +3365,7 @@ 'context': , 'entity_id': 'sensor.livingroom_battery_percent', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '75', }) @@ -3374,6 +3417,7 @@ 'context': , 'entity_id': 'sensor.livingroom_co2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -3421,6 +3465,7 @@ 'context': , 'entity_id': 'sensor.livingroom_health', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -3472,6 +3517,7 @@ 'context': , 'entity_id': 'sensor.livingroom_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -3523,6 +3569,7 @@ 'context': , 'entity_id': 'sensor.livingroom_noise', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -3577,6 +3624,7 @@ 'context': , 'entity_id': 'sensor.livingroom_pressure', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -3700,6 +3748,7 @@ 'context': , 'entity_id': 'sensor.livingroom_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -3825,6 +3874,7 @@ 'context': , 'entity_id': 'sensor.parents_bedroom_co2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '494', }) @@ -3874,6 +3924,7 @@ 'context': , 'entity_id': 'sensor.parents_bedroom_health', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Fine', }) @@ -3927,6 +3978,7 @@ 'context': , 'entity_id': 'sensor.parents_bedroom_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '63', }) @@ -3980,6 +4032,7 @@ 'context': , 'entity_id': 'sensor.parents_bedroom_noise', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '42', }) @@ -4036,6 +4089,7 @@ 'context': , 'entity_id': 'sensor.parents_bedroom_pressure', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1014.5', }) @@ -4161,6 +4215,7 @@ 'context': , 'entity_id': 'sensor.parents_bedroom_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '20.3', }) @@ -4284,6 +4339,7 @@ 'context': , 'entity_id': 'sensor.prise_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -4371,6 +4427,7 @@ 'context': , 'entity_id': 'sensor.total_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -4458,6 +4515,7 @@ 'context': , 'entity_id': 'sensor.valve1_battery_percent', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '90', }) @@ -4509,6 +4567,7 @@ 'context': , 'entity_id': 'sensor.valve2_battery_percent', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '90', }) @@ -4560,6 +4619,7 @@ 'context': , 'entity_id': 'sensor.villa_bathroom_battery_percent', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '55', }) @@ -4611,6 +4671,7 @@ 'context': , 'entity_id': 'sensor.villa_bathroom_co2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1930', }) @@ -4662,6 +4723,7 @@ 'context': , 'entity_id': 'sensor.villa_bathroom_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '55', }) @@ -4785,6 +4847,7 @@ 'context': , 'entity_id': 'sensor.villa_bathroom_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '19.4', }) @@ -4872,6 +4935,7 @@ 'context': , 'entity_id': 'sensor.villa_bedroom_battery_percent', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '28', }) @@ -4923,6 +4987,7 @@ 'context': , 'entity_id': 'sensor.villa_bedroom_co2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1076', }) @@ -4974,6 +5039,7 @@ 'context': , 'entity_id': 'sensor.villa_bedroom_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '53', }) @@ -5097,6 +5163,7 @@ 'context': , 'entity_id': 'sensor.villa_bedroom_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '19.3', }) @@ -5186,6 +5253,7 @@ 'context': , 'entity_id': 'sensor.villa_co2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1339', }) @@ -5275,6 +5343,7 @@ 'context': , 'entity_id': 'sensor.villa_garden_battery_percent', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '85', }) @@ -5322,6 +5391,7 @@ 'context': , 'entity_id': 'sensor.villa_garden_direction', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'SW', }) @@ -5557,6 +5627,7 @@ 'context': , 'entity_id': 'sensor.villa_garden_wind_strength', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '4', }) @@ -5610,6 +5681,7 @@ 'context': , 'entity_id': 'sensor.villa_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '45', }) @@ -5663,6 +5735,7 @@ 'context': , 'entity_id': 'sensor.villa_noise', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '35', }) @@ -5714,6 +5787,7 @@ 'context': , 'entity_id': 'sensor.villa_outdoor_battery_percent', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -5765,6 +5839,7 @@ 'context': , 'entity_id': 'sensor.villa_outdoor_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -5888,6 +5963,7 @@ 'context': , 'entity_id': 'sensor.villa_outdoor_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -5980,6 +6056,7 @@ 'context': , 'entity_id': 'sensor.villa_pressure', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1026.8', }) @@ -6067,6 +6144,7 @@ 'context': , 'entity_id': 'sensor.villa_rain_battery_percent', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '21', }) @@ -6154,6 +6232,7 @@ 'context': , 'entity_id': 'sensor.villa_rain_rain', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3.7', }) @@ -6243,6 +6322,7 @@ 'context': , 'entity_id': 'sensor.villa_rain_rain_today', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '6.9', }) @@ -6368,6 +6448,7 @@ 'context': , 'entity_id': 'sensor.villa_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '21.1', }) diff --git a/tests/components/netatmo/snapshots/test_switch.ambr b/tests/components/netatmo/snapshots/test_switch.ambr index 06f40bcd379..22c41aefd42 100644 --- a/tests/components/netatmo/snapshots/test_switch.ambr +++ b/tests/components/netatmo/snapshots/test_switch.ambr @@ -41,6 +41,7 @@ 'context': , 'entity_id': 'switch.prise', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/netgear_lte/snapshots/test_binary_sensor.ambr b/tests/components/netgear_lte/snapshots/test_binary_sensor.ambr index 6f3950aaabe..7ff30fb5cbc 100644 --- a/tests/components/netgear_lte/snapshots/test_binary_sensor.ambr +++ b/tests/components/netgear_lte/snapshots/test_binary_sensor.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'binary_sensor.netgear_lm1200_mobile_connected', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -20,6 +21,7 @@ 'context': , 'entity_id': 'binary_sensor.netgear_lm1200_roaming', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -33,6 +35,7 @@ 'context': , 'entity_id': 'binary_sensor.netgear_lm1200_wire_connected', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/netgear_lte/snapshots/test_sensor.ambr b/tests/components/netgear_lte/snapshots/test_sensor.ambr index e74416895ee..cbeb0bf5b9a 100644 --- a/tests/components/netgear_lte/snapshots/test_sensor.ambr +++ b/tests/components/netgear_lte/snapshots/test_sensor.ambr @@ -7,6 +7,7 @@ 'context': , 'entity_id': 'sensor.netgear_lm1200_cell_id', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '12345678', }) @@ -19,6 +20,7 @@ 'context': , 'entity_id': 'sensor.netgear_lm1200_connection_text', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '4G', }) @@ -31,6 +33,7 @@ 'context': , 'entity_id': 'sensor.netgear_lm1200_connection_type', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'IPv4AndIPv6', }) @@ -43,6 +46,7 @@ 'context': , 'entity_id': 'sensor.netgear_lm1200_current_band', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'LTE B4', }) @@ -56,6 +60,7 @@ 'context': , 'entity_id': 'sensor.netgear_lm1200_radio_quality', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '52', }) @@ -68,6 +73,7 @@ 'context': , 'entity_id': 'sensor.netgear_lm1200_register_network_display', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'T-Mobile', }) @@ -82,6 +88,7 @@ 'context': , 'entity_id': 'sensor.netgear_lm1200_rx_level', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-113', }) @@ -94,6 +101,7 @@ 'context': , 'entity_id': 'sensor.netgear_lm1200_service_type', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'LTE', }) @@ -107,6 +115,7 @@ 'context': , 'entity_id': 'sensor.netgear_lm1200_sms', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1', }) @@ -120,6 +129,7 @@ 'context': , 'entity_id': 'sensor.netgear_lm1200_sms_total', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1', }) @@ -134,6 +144,7 @@ 'context': , 'entity_id': 'sensor.netgear_lm1200_tx_level', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '4', }) @@ -146,6 +157,7 @@ 'context': , 'entity_id': 'sensor.netgear_lm1200_upstream', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'LTE', }) @@ -160,6 +172,7 @@ 'context': , 'entity_id': 'sensor.netgear_lm1200_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '40.5162000656128', }) diff --git a/tests/components/nibe_heatpump/snapshots/test_climate.ambr b/tests/components/nibe_heatpump/snapshots/test_climate.ambr index f19fd69c47d..0c5cd46f5db 100644 --- a/tests/components/nibe_heatpump/snapshots/test_climate.ambr +++ b/tests/components/nibe_heatpump/snapshots/test_climate.ambr @@ -21,6 +21,7 @@ 'context': , 'entity_id': 'climate.climate_system_s2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'heat_cool', }) @@ -42,6 +43,7 @@ 'context': , 'entity_id': 'climate.climate_system_s2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -68,6 +70,7 @@ 'context': , 'entity_id': 'climate.climate_system_s3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'heat_cool', }) @@ -89,6 +92,7 @@ 'context': , 'entity_id': 'climate.climate_system_s3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -121,6 +125,7 @@ 'context': , 'entity_id': 'climate.climate_system_s2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'heat_cool', }) @@ -147,6 +152,7 @@ 'context': , 'entity_id': 'climate.climate_system_s2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'auto', }) @@ -173,6 +179,7 @@ 'context': , 'entity_id': 'climate.climate_system_s2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'heat', }) @@ -199,6 +206,7 @@ 'context': , 'entity_id': 'climate.climate_system_s2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'heat_cool', }) @@ -225,6 +233,7 @@ 'context': , 'entity_id': 'climate.climate_system_s2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'heat_cool', }) @@ -251,6 +260,7 @@ 'context': , 'entity_id': 'climate.climate_system_s2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'heat_cool', }) @@ -277,6 +287,7 @@ 'context': , 'entity_id': 'climate.climate_system_s2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'auto', }) @@ -303,6 +314,7 @@ 'context': , 'entity_id': 'climate.climate_system_s2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'auto', }) @@ -329,6 +341,7 @@ 'context': , 'entity_id': 'climate.climate_system_s1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'heat_cool', }) @@ -355,6 +368,7 @@ 'context': , 'entity_id': 'climate.climate_system_s1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'auto', }) @@ -381,6 +395,7 @@ 'context': , 'entity_id': 'climate.climate_system_s1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'heat', }) @@ -407,6 +422,7 @@ 'context': , 'entity_id': 'climate.climate_system_s1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'heat_cool', }) @@ -433,6 +449,7 @@ 'context': , 'entity_id': 'climate.climate_system_s1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'heat_cool', }) @@ -459,6 +476,7 @@ 'context': , 'entity_id': 'climate.climate_system_s1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'heat_cool', }) @@ -485,6 +503,7 @@ 'context': , 'entity_id': 'climate.climate_system_s1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'auto', }) @@ -511,6 +530,7 @@ 'context': , 'entity_id': 'climate.climate_system_s1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'auto', }) diff --git a/tests/components/nibe_heatpump/snapshots/test_coordinator.ambr b/tests/components/nibe_heatpump/snapshots/test_coordinator.ambr index 98e62a833a8..50755533ee5 100644 --- a/tests/components/nibe_heatpump/snapshots/test_coordinator.ambr +++ b/tests/components/nibe_heatpump/snapshots/test_coordinator.ambr @@ -11,6 +11,7 @@ 'context': , 'entity_id': 'number.heating_offset_climate_system_1_40031', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10.0', }) @@ -27,6 +28,7 @@ 'context': , 'entity_id': 'number.heating_offset_climate_system_1_40031', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -43,6 +45,7 @@ 'context': , 'entity_id': 'number.heating_offset_climate_system_1_40031', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10.0', }) @@ -60,6 +63,7 @@ 'context': , 'entity_id': 'number.min_supply_climate_system_1_40035', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -79,6 +83,7 @@ 'context': , 'entity_id': 'number.heating_offset_climate_system_1_40031', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10.0', }) @@ -95,6 +100,7 @@ 'context': , 'entity_id': 'number.heating_offset_climate_system_1_40031', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '20.0', }) @@ -111,6 +117,7 @@ 'context': , 'entity_id': 'number.heating_offset_climate_system_1_40031', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '20.0', }) @@ -127,6 +134,7 @@ 'context': , 'entity_id': 'number.heating_offset_climate_system_1_40031', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '30.0', }) diff --git a/tests/components/nibe_heatpump/snapshots/test_number.ambr b/tests/components/nibe_heatpump/snapshots/test_number.ambr index d174c0cc059..343d5569a2d 100644 --- a/tests/components/nibe_heatpump/snapshots/test_number.ambr +++ b/tests/components/nibe_heatpump/snapshots/test_number.ambr @@ -11,6 +11,7 @@ 'context': , 'entity_id': 'number.heat_offset_s1_47011', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-10.0', }) @@ -27,6 +28,7 @@ 'context': , 'entity_id': 'number.heat_offset_s1_47011', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10.0', }) @@ -47,6 +49,7 @@ 'context': , 'entity_id': 'number.hw_charge_offset_47062', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-10.0', }) @@ -64,6 +67,7 @@ 'context': , 'entity_id': 'number.hw_charge_offset_47062', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10.0', }) @@ -81,6 +85,7 @@ 'context': , 'entity_id': 'number.hw_charge_offset_47062', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -97,6 +102,7 @@ 'context': , 'entity_id': 'number.heating_offset_climate_system_1_40031', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-10.0', }) @@ -113,6 +119,7 @@ 'context': , 'entity_id': 'number.heating_offset_climate_system_1_40031', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10.0', }) @@ -129,6 +136,7 @@ 'context': , 'entity_id': 'number.heating_offset_climate_system_1_40031', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) diff --git a/tests/components/onewire/snapshots/test_binary_sensor.ambr b/tests/components/onewire/snapshots/test_binary_sensor.ambr index afdec245ea0..3123dfb6a5e 100644 --- a/tests/components/onewire/snapshots/test_binary_sensor.ambr +++ b/tests/components/onewire/snapshots/test_binary_sensor.ambr @@ -200,6 +200,7 @@ 'context': , 'entity_id': 'binary_sensor.12_111111111111_sensed_a', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -212,6 +213,7 @@ 'context': , 'entity_id': 'binary_sensor.12_111111111111_sensed_b', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -820,6 +822,7 @@ 'context': , 'entity_id': 'binary_sensor.29_111111111111_sensed_0', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -832,6 +835,7 @@ 'context': , 'entity_id': 'binary_sensor.29_111111111111_sensed_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -844,6 +848,7 @@ 'context': , 'entity_id': 'binary_sensor.29_111111111111_sensed_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -856,6 +861,7 @@ 'context': , 'entity_id': 'binary_sensor.29_111111111111_sensed_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -868,6 +874,7 @@ 'context': , 'entity_id': 'binary_sensor.29_111111111111_sensed_4', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -880,6 +887,7 @@ 'context': , 'entity_id': 'binary_sensor.29_111111111111_sensed_5', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -892,6 +900,7 @@ 'context': , 'entity_id': 'binary_sensor.29_111111111111_sensed_6', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -904,6 +913,7 @@ 'context': , 'entity_id': 'binary_sensor.29_111111111111_sensed_7', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1058,6 +1068,7 @@ 'context': , 'entity_id': 'binary_sensor.3a_111111111111_sensed_a', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -1070,6 +1081,7 @@ 'context': , 'entity_id': 'binary_sensor.3a_111111111111_sensed_b', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1527,6 +1539,7 @@ 'context': , 'entity_id': 'binary_sensor.ef_111111111113_hub_short_on_branch_0', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -1540,6 +1553,7 @@ 'context': , 'entity_id': 'binary_sensor.ef_111111111113_hub_short_on_branch_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1553,6 +1567,7 @@ 'context': , 'entity_id': 'binary_sensor.ef_111111111113_hub_short_on_branch_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -1566,6 +1581,7 @@ 'context': , 'entity_id': 'binary_sensor.ef_111111111113_hub_short_on_branch_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), diff --git a/tests/components/onewire/snapshots/test_sensor.ambr b/tests/components/onewire/snapshots/test_sensor.ambr index 989a5997ca8..aa8c914ece5 100644 --- a/tests/components/onewire/snapshots/test_sensor.ambr +++ b/tests/components/onewire/snapshots/test_sensor.ambr @@ -134,6 +134,7 @@ 'context': , 'entity_id': 'sensor.10_111111111111_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '25.1', }), @@ -255,6 +256,7 @@ 'context': , 'entity_id': 'sensor.12_111111111111_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '25.1', }), @@ -270,6 +272,7 @@ 'context': , 'entity_id': 'sensor.12_111111111111_pressure', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1025.1', }), @@ -390,6 +393,7 @@ 'context': , 'entity_id': 'sensor.1d_111111111111_counter_a', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '251123', }), @@ -404,6 +408,7 @@ 'context': , 'entity_id': 'sensor.1d_111111111111_counter_b', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '248125', }), @@ -552,6 +557,7 @@ 'context': , 'entity_id': 'sensor.1d_111111111111_counter_a', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '251123', }), @@ -566,6 +572,7 @@ 'context': , 'entity_id': 'sensor.1d_111111111111_counter_b', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '248125', }), @@ -654,6 +661,7 @@ 'context': , 'entity_id': 'sensor.22_111111111111_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1072,6 +1080,7 @@ 'context': , 'entity_id': 'sensor.26_111111111111_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '25.1', }), @@ -1087,6 +1096,7 @@ 'context': , 'entity_id': 'sensor.26_111111111111_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '72.8', }), @@ -1102,6 +1112,7 @@ 'context': , 'entity_id': 'sensor.26_111111111111_hih3600_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '73.8', }), @@ -1117,6 +1128,7 @@ 'context': , 'entity_id': 'sensor.26_111111111111_hih4000_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '74.8', }), @@ -1132,6 +1144,7 @@ 'context': , 'entity_id': 'sensor.26_111111111111_hih5030_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '75.8', }), @@ -1147,6 +1160,7 @@ 'context': , 'entity_id': 'sensor.26_111111111111_htm1735_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1162,6 +1176,7 @@ 'context': , 'entity_id': 'sensor.26_111111111111_pressure', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '969.3', }), @@ -1177,6 +1192,7 @@ 'context': , 'entity_id': 'sensor.26_111111111111_illuminance', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '65.9', }), @@ -1192,6 +1208,7 @@ 'context': , 'entity_id': 'sensor.26_111111111111_vad_voltage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3.0', }), @@ -1207,6 +1224,7 @@ 'context': , 'entity_id': 'sensor.26_111111111111_vdd_voltage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '4.7', }), @@ -1222,6 +1240,7 @@ 'context': , 'entity_id': 'sensor.26_111111111111_vis_voltage_difference', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.1', }), @@ -1310,6 +1329,7 @@ 'context': , 'entity_id': 'sensor.28_111111111111_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '27.0', }), @@ -1398,6 +1418,7 @@ 'context': , 'entity_id': 'sensor.28_222222222222_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '27.0', }), @@ -1486,6 +1507,7 @@ 'context': , 'entity_id': 'sensor.28_222222222223_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '27.0', }), @@ -1713,6 +1735,7 @@ 'context': , 'entity_id': 'sensor.30_111111111111_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '27.0', }), @@ -1728,6 +1751,7 @@ 'context': , 'entity_id': 'sensor.30_111111111111_thermocouple_k_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '173.8', }), @@ -1743,6 +1767,7 @@ 'context': , 'entity_id': 'sensor.30_111111111111_voltage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3.0', }), @@ -1758,6 +1783,7 @@ 'context': , 'entity_id': 'sensor.30_111111111111_vis_voltage_gradient', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.1', }), @@ -1886,6 +1912,7 @@ 'context': , 'entity_id': 'sensor.3b_111111111111_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '28.2', }), @@ -1974,6 +2001,7 @@ 'context': , 'entity_id': 'sensor.42_111111111111_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '29.1', }), @@ -2161,6 +2189,7 @@ 'context': , 'entity_id': 'sensor.7e_111111111111_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '13.9', }), @@ -2176,6 +2205,7 @@ 'context': , 'entity_id': 'sensor.7e_111111111111_pressure', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1012.2', }), @@ -2191,6 +2221,7 @@ 'context': , 'entity_id': 'sensor.7e_111111111111_illuminance', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '65.9', }), @@ -2206,6 +2237,7 @@ 'context': , 'entity_id': 'sensor.7e_111111111111_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '41.4', }), @@ -2327,6 +2359,7 @@ 'context': , 'entity_id': 'sensor.7e_222222222222_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '13.9', }), @@ -2342,6 +2375,7 @@ 'context': , 'entity_id': 'sensor.7e_222222222222_pressure', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1012.2', }), @@ -2760,6 +2794,7 @@ 'context': , 'entity_id': 'sensor.a6_111111111111_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '25.1', }), @@ -2775,6 +2810,7 @@ 'context': , 'entity_id': 'sensor.a6_111111111111_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '72.8', }), @@ -2790,6 +2826,7 @@ 'context': , 'entity_id': 'sensor.a6_111111111111_hih3600_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '73.8', }), @@ -2805,6 +2842,7 @@ 'context': , 'entity_id': 'sensor.a6_111111111111_hih4000_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '74.8', }), @@ -2820,6 +2858,7 @@ 'context': , 'entity_id': 'sensor.a6_111111111111_hih5030_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '75.8', }), @@ -2835,6 +2874,7 @@ 'context': , 'entity_id': 'sensor.a6_111111111111_htm1735_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -2850,6 +2890,7 @@ 'context': , 'entity_id': 'sensor.a6_111111111111_pressure', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '969.3', }), @@ -2865,6 +2906,7 @@ 'context': , 'entity_id': 'sensor.a6_111111111111_illuminance', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '65.9', }), @@ -2880,6 +2922,7 @@ 'context': , 'entity_id': 'sensor.a6_111111111111_vad_voltage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3.0', }), @@ -2895,6 +2938,7 @@ 'context': , 'entity_id': 'sensor.a6_111111111111_vdd_voltage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '4.7', }), @@ -2910,6 +2954,7 @@ 'context': , 'entity_id': 'sensor.a6_111111111111_vis_voltage_difference', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.1', }), @@ -3064,6 +3109,7 @@ 'context': , 'entity_id': 'sensor.ef_111111111111_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '67.7', }), @@ -3079,6 +3125,7 @@ 'context': , 'entity_id': 'sensor.ef_111111111111_raw_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '65.5', }), @@ -3094,6 +3141,7 @@ 'context': , 'entity_id': 'sensor.ef_111111111111_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '25.1', }), @@ -3281,6 +3329,7 @@ 'context': , 'entity_id': 'sensor.ef_111111111112_wetness_0', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '41.7', }), @@ -3296,6 +3345,7 @@ 'context': , 'entity_id': 'sensor.ef_111111111112_wetness_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '42.5', }), @@ -3311,6 +3361,7 @@ 'context': , 'entity_id': 'sensor.ef_111111111112_moisture_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '43.1', }), @@ -3326,6 +3377,7 @@ 'context': , 'entity_id': 'sensor.ef_111111111112_moisture_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '44.1', }), diff --git a/tests/components/onewire/snapshots/test_switch.ambr b/tests/components/onewire/snapshots/test_switch.ambr index cd3e9708d95..2ac542d203c 100644 --- a/tests/components/onewire/snapshots/test_switch.ambr +++ b/tests/components/onewire/snapshots/test_switch.ambr @@ -89,6 +89,7 @@ 'context': , 'entity_id': 'switch.05_111111111111_programmed_input_output', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -305,6 +306,7 @@ 'context': , 'entity_id': 'switch.12_111111111111_programmed_input_output_a', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -317,6 +319,7 @@ 'context': , 'entity_id': 'switch.12_111111111111_programmed_input_output_b', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -329,6 +332,7 @@ 'context': , 'entity_id': 'switch.12_111111111111_latch_a', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -341,6 +345,7 @@ 'context': , 'entity_id': 'switch.12_111111111111_latch_b', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -572,6 +577,7 @@ 'context': , 'entity_id': 'switch.26_111111111111_current_a_d_control', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -1240,6 +1246,7 @@ 'context': , 'entity_id': 'switch.29_111111111111_programmed_input_output_0', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -1252,6 +1259,7 @@ 'context': , 'entity_id': 'switch.29_111111111111_programmed_input_output_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1264,6 +1272,7 @@ 'context': , 'entity_id': 'switch.29_111111111111_programmed_input_output_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -1276,6 +1285,7 @@ 'context': , 'entity_id': 'switch.29_111111111111_programmed_input_output_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1288,6 +1298,7 @@ 'context': , 'entity_id': 'switch.29_111111111111_programmed_input_output_4', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -1300,6 +1311,7 @@ 'context': , 'entity_id': 'switch.29_111111111111_programmed_input_output_5', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1312,6 +1324,7 @@ 'context': , 'entity_id': 'switch.29_111111111111_programmed_input_output_6', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -1324,6 +1337,7 @@ 'context': , 'entity_id': 'switch.29_111111111111_programmed_input_output_7', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1336,6 +1350,7 @@ 'context': , 'entity_id': 'switch.29_111111111111_latch_0', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -1348,6 +1363,7 @@ 'context': , 'entity_id': 'switch.29_111111111111_latch_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1360,6 +1376,7 @@ 'context': , 'entity_id': 'switch.29_111111111111_latch_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -1372,6 +1389,7 @@ 'context': , 'entity_id': 'switch.29_111111111111_latch_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1384,6 +1402,7 @@ 'context': , 'entity_id': 'switch.29_111111111111_latch_4', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -1396,6 +1415,7 @@ 'context': , 'entity_id': 'switch.29_111111111111_latch_5', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1408,6 +1428,7 @@ 'context': , 'entity_id': 'switch.29_111111111111_latch_6', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -1420,6 +1441,7 @@ 'context': , 'entity_id': 'switch.29_111111111111_latch_7', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1574,6 +1596,7 @@ 'context': , 'entity_id': 'switch.3a_111111111111_programmed_input_output_a', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -1586,6 +1609,7 @@ 'context': , 'entity_id': 'switch.3a_111111111111_programmed_input_output_b', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1829,6 +1853,7 @@ 'context': , 'entity_id': 'switch.a6_111111111111_current_a_d_control', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -2169,6 +2194,7 @@ 'context': , 'entity_id': 'switch.ef_111111111112_leaf_sensor_0', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -2181,6 +2207,7 @@ 'context': , 'entity_id': 'switch.ef_111111111112_leaf_sensor_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -2193,6 +2220,7 @@ 'context': , 'entity_id': 'switch.ef_111111111112_leaf_sensor_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -2205,6 +2233,7 @@ 'context': , 'entity_id': 'switch.ef_111111111112_leaf_sensor_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -2217,6 +2246,7 @@ 'context': , 'entity_id': 'switch.ef_111111111112_moisture_sensor_0', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -2229,6 +2259,7 @@ 'context': , 'entity_id': 'switch.ef_111111111112_moisture_sensor_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -2241,6 +2272,7 @@ 'context': , 'entity_id': 'switch.ef_111111111112_moisture_sensor_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -2253,6 +2285,7 @@ 'context': , 'entity_id': 'switch.ef_111111111112_moisture_sensor_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -2429,6 +2462,7 @@ 'context': , 'entity_id': 'switch.ef_111111111113_hub_branch_0', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -2441,6 +2475,7 @@ 'context': , 'entity_id': 'switch.ef_111111111113_hub_branch_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -2453,6 +2488,7 @@ 'context': , 'entity_id': 'switch.ef_111111111113_hub_branch_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -2465,6 +2501,7 @@ 'context': , 'entity_id': 'switch.ef_111111111113_hub_branch_3', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), diff --git a/tests/components/opensky/snapshots/test_sensor.ambr b/tests/components/opensky/snapshots/test_sensor.ambr index ab39746a93f..717927fb461 100644 --- a/tests/components/opensky/snapshots/test_sensor.ambr +++ b/tests/components/opensky/snapshots/test_sensor.ambr @@ -10,6 +10,7 @@ 'context': , 'entity_id': 'sensor.opensky', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) @@ -25,6 +26,7 @@ 'context': , 'entity_id': 'sensor.opensky', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1', }) diff --git a/tests/components/ping/snapshots/test_binary_sensor.ambr b/tests/components/ping/snapshots/test_binary_sensor.ambr index e4d26fe873e..98ea9a8a847 100644 --- a/tests/components/ping/snapshots/test_binary_sensor.ambr +++ b/tests/components/ping/snapshots/test_binary_sensor.ambr @@ -104,6 +104,7 @@ 'context': , 'entity_id': 'binary_sensor.10_10_10_10', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -121,6 +122,7 @@ 'context': , 'entity_id': 'binary_sensor.10_10_10_10', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/ping/snapshots/test_sensor.ambr b/tests/components/ping/snapshots/test_sensor.ambr index c91dcff687a..d1548f7559c 100644 --- a/tests/components/ping/snapshots/test_sensor.ambr +++ b/tests/components/ping/snapshots/test_sensor.ambr @@ -44,6 +44,7 @@ 'context': , 'entity_id': 'sensor.10_10_10_10_round_trip_time_average', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '4.8', }) @@ -93,6 +94,7 @@ 'context': , 'entity_id': 'sensor.10_10_10_10_round_trip_time_maximum', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10', }) @@ -148,6 +150,7 @@ 'context': , 'entity_id': 'sensor.10_10_10_10_round_trip_time_minimum', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1', }) diff --git a/tests/components/proximity/test_diagnostics.py b/tests/components/proximity/test_diagnostics.py index e161d175d0b..26d1d293efd 100644 --- a/tests/components/proximity/test_diagnostics.py +++ b/tests/components/proximity/test_diagnostics.py @@ -71,4 +71,6 @@ async def test_entry_diagnostics( assert await get_diagnostics_for_config_entry( hass, hass_client, mock_entry - ) == snapshot(exclude=props("entry_id", "last_changed", "last_updated")) + ) == snapshot( + exclude=props("entry_id", "last_changed", "last_reported", "last_updated") + ) diff --git a/tests/components/renault/snapshots/test_binary_sensor.ambr b/tests/components/renault/snapshots/test_binary_sensor.ambr index da0916cfae0..7f30faac38e 100644 --- a/tests/components/renault/snapshots/test_binary_sensor.ambr +++ b/tests/components/renault/snapshots/test_binary_sensor.ambr @@ -231,6 +231,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_lock', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -242,6 +243,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_hatch', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -253,6 +255,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_rear_left_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -264,6 +267,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_rear_right_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -275,6 +279,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_driver_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -286,6 +291,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_passenger_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -585,6 +591,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_plug', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -596,6 +603,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_charging', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -607,6 +615,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_lock', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -618,6 +627,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_hatch', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -629,6 +639,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_rear_left_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -640,6 +651,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_rear_right_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -651,6 +663,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_driver_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -662,6 +675,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_passenger_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -806,6 +820,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_plug', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -817,6 +832,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_charging', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -827,6 +843,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_hvac', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1157,6 +1174,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_plug', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1168,6 +1186,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_charging', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1178,6 +1197,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_hvac', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1189,6 +1209,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_lock', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1200,6 +1221,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_hatch', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1211,6 +1233,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_rear_left_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1222,6 +1245,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_rear_right_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1233,6 +1257,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_driver_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1244,6 +1269,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_passenger_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1481,6 +1507,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_lock', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1492,6 +1519,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_hatch', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1503,6 +1531,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_rear_left_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1514,6 +1543,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_rear_right_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1525,6 +1555,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_driver_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1536,6 +1567,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_passenger_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1835,6 +1867,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_plug', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -1846,6 +1879,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_charging', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -1857,6 +1891,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_lock', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1868,6 +1903,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_hatch', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1879,6 +1915,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_rear_left_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1890,6 +1927,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_rear_right_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1901,6 +1939,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_driver_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -1912,6 +1951,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_passenger_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -2056,6 +2096,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_plug', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -2067,6 +2108,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_charging', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -2077,6 +2119,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_hvac', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -2407,6 +2450,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_plug', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -2418,6 +2462,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_charging', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -2428,6 +2473,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_hvac', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -2439,6 +2485,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_lock', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -2450,6 +2497,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_hatch', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -2461,6 +2509,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_rear_left_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -2472,6 +2521,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_rear_right_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -2483,6 +2533,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_driver_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), @@ -2494,6 +2545,7 @@ 'context': , 'entity_id': 'binary_sensor.reg_number_passenger_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), diff --git a/tests/components/renault/snapshots/test_button.ambr b/tests/components/renault/snapshots/test_button.ambr index 38f0d0fa106..daef84b5c0a 100644 --- a/tests/components/renault/snapshots/test_button.ambr +++ b/tests/components/renault/snapshots/test_button.ambr @@ -75,6 +75,7 @@ 'context': , 'entity_id': 'button.reg_number_start_air_conditioner', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -218,6 +219,7 @@ 'context': , 'entity_id': 'button.reg_number_start_air_conditioner', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -228,6 +230,7 @@ 'context': , 'entity_id': 'button.reg_number_start_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -238,6 +241,7 @@ 'context': , 'entity_id': 'button.reg_number_stop_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -381,6 +385,7 @@ 'context': , 'entity_id': 'button.reg_number_start_air_conditioner', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -391,6 +396,7 @@ 'context': , 'entity_id': 'button.reg_number_start_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -401,6 +407,7 @@ 'context': , 'entity_id': 'button.reg_number_stop_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -544,6 +551,7 @@ 'context': , 'entity_id': 'button.reg_number_start_air_conditioner', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -554,6 +562,7 @@ 'context': , 'entity_id': 'button.reg_number_start_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -564,6 +573,7 @@ 'context': , 'entity_id': 'button.reg_number_stop_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -645,6 +655,7 @@ 'context': , 'entity_id': 'button.reg_number_start_air_conditioner', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -788,6 +799,7 @@ 'context': , 'entity_id': 'button.reg_number_start_air_conditioner', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -798,6 +810,7 @@ 'context': , 'entity_id': 'button.reg_number_start_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -808,6 +821,7 @@ 'context': , 'entity_id': 'button.reg_number_stop_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -951,6 +965,7 @@ 'context': , 'entity_id': 'button.reg_number_start_air_conditioner', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -961,6 +976,7 @@ 'context': , 'entity_id': 'button.reg_number_start_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -971,6 +987,7 @@ 'context': , 'entity_id': 'button.reg_number_stop_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1114,6 +1131,7 @@ 'context': , 'entity_id': 'button.reg_number_start_air_conditioner', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1124,6 +1142,7 @@ 'context': , 'entity_id': 'button.reg_number_start_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1134,6 +1153,7 @@ 'context': , 'entity_id': 'button.reg_number_stop_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), diff --git a/tests/components/renault/snapshots/test_device_tracker.ambr b/tests/components/renault/snapshots/test_device_tracker.ambr index 3a029617ab3..8fe1713dc0b 100644 --- a/tests/components/renault/snapshots/test_device_tracker.ambr +++ b/tests/components/renault/snapshots/test_device_tracker.ambr @@ -76,6 +76,7 @@ 'context': , 'entity_id': 'device_tracker.reg_number_location', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -158,6 +159,7 @@ 'context': , 'entity_id': 'device_tracker.reg_number_location', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -280,6 +282,7 @@ 'context': , 'entity_id': 'device_tracker.reg_number_location', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -365,6 +368,7 @@ 'context': , 'entity_id': 'device_tracker.reg_number_location', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'not_home', }), @@ -450,6 +454,7 @@ 'context': , 'entity_id': 'device_tracker.reg_number_location', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'not_home', }), @@ -575,6 +580,7 @@ 'context': , 'entity_id': 'device_tracker.reg_number_location', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'not_home', }), diff --git a/tests/components/renault/snapshots/test_select.ambr b/tests/components/renault/snapshots/test_select.ambr index 053cbf48217..7e8356ee070 100644 --- a/tests/components/renault/snapshots/test_select.ambr +++ b/tests/components/renault/snapshots/test_select.ambr @@ -126,6 +126,7 @@ 'context': , 'entity_id': 'select.reg_number_charge_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -218,6 +219,7 @@ 'context': , 'entity_id': 'select.reg_number_charge_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -310,6 +312,7 @@ 'context': , 'entity_id': 'select.reg_number_charge_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -442,6 +445,7 @@ 'context': , 'entity_id': 'select.reg_number_charge_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'always', }), @@ -534,6 +538,7 @@ 'context': , 'entity_id': 'select.reg_number_charge_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'always', }), @@ -626,6 +631,7 @@ 'context': , 'entity_id': 'select.reg_number_charge_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'schedule_mode', }), diff --git a/tests/components/renault/snapshots/test_sensor.ambr b/tests/components/renault/snapshots/test_sensor.ambr index a13b194c5b8..5909c66bc5c 100644 --- a/tests/components/renault/snapshots/test_sensor.ambr +++ b/tests/components/renault/snapshots/test_sensor.ambr @@ -239,6 +239,7 @@ 'context': , 'entity_id': 'sensor.reg_number_mileage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -252,6 +253,7 @@ 'context': , 'entity_id': 'sensor.reg_number_fuel_autonomy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -265,6 +267,7 @@ 'context': , 'entity_id': 'sensor.reg_number_fuel_quantity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -276,6 +279,7 @@ 'context': , 'entity_id': 'sensor.reg_number_last_location_activity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -286,6 +290,7 @@ 'context': , 'entity_id': 'sensor.reg_number_remote_engine_start', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -296,6 +301,7 @@ 'context': , 'entity_id': 'sensor.reg_number_remote_engine_start_code', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -850,6 +856,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -871,6 +878,7 @@ 'context': , 'entity_id': 'sensor.reg_number_charge_state', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -884,6 +892,7 @@ 'context': , 'entity_id': 'sensor.reg_number_charging_remaining_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -897,6 +906,7 @@ 'context': , 'entity_id': 'sensor.reg_number_admissible_charging_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -914,6 +924,7 @@ 'context': , 'entity_id': 'sensor.reg_number_plug_state', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -927,6 +938,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery_autonomy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -940,6 +952,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery_available_energy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -953,6 +966,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -964,6 +978,7 @@ 'context': , 'entity_id': 'sensor.reg_number_last_battery_activity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -977,6 +992,7 @@ 'context': , 'entity_id': 'sensor.reg_number_mileage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -990,6 +1006,7 @@ 'context': , 'entity_id': 'sensor.reg_number_fuel_autonomy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1003,6 +1020,7 @@ 'context': , 'entity_id': 'sensor.reg_number_fuel_quantity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1014,6 +1032,7 @@ 'context': , 'entity_id': 'sensor.reg_number_last_location_activity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1024,6 +1043,7 @@ 'context': , 'entity_id': 'sensor.reg_number_remote_engine_start', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1034,6 +1054,7 @@ 'context': , 'entity_id': 'sensor.reg_number_remote_engine_start_code', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1586,6 +1607,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1607,6 +1629,7 @@ 'context': , 'entity_id': 'sensor.reg_number_charge_state', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1620,6 +1643,7 @@ 'context': , 'entity_id': 'sensor.reg_number_charging_remaining_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1633,6 +1657,7 @@ 'context': , 'entity_id': 'sensor.reg_number_charging_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1650,6 +1675,7 @@ 'context': , 'entity_id': 'sensor.reg_number_plug_state', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1663,6 +1689,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery_autonomy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1676,6 +1703,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery_available_energy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1689,6 +1717,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1700,6 +1729,7 @@ 'context': , 'entity_id': 'sensor.reg_number_last_battery_activity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1713,6 +1743,7 @@ 'context': , 'entity_id': 'sensor.reg_number_mileage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1726,6 +1757,7 @@ 'context': , 'entity_id': 'sensor.reg_number_outside_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1737,6 +1769,7 @@ 'context': , 'entity_id': 'sensor.reg_number_hvac_soc_threshold', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1748,6 +1781,7 @@ 'context': , 'entity_id': 'sensor.reg_number_last_hvac_activity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1758,6 +1792,7 @@ 'context': , 'entity_id': 'sensor.reg_number_remote_engine_start', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -1768,6 +1803,7 @@ 'context': , 'entity_id': 'sensor.reg_number_remote_engine_start_code', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -2351,6 +2387,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -2372,6 +2409,7 @@ 'context': , 'entity_id': 'sensor.reg_number_charge_state', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -2385,6 +2423,7 @@ 'context': , 'entity_id': 'sensor.reg_number_charging_remaining_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -2398,6 +2437,7 @@ 'context': , 'entity_id': 'sensor.reg_number_admissible_charging_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -2415,6 +2455,7 @@ 'context': , 'entity_id': 'sensor.reg_number_plug_state', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -2428,6 +2469,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery_autonomy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -2441,6 +2483,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery_available_energy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -2454,6 +2497,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -2465,6 +2509,7 @@ 'context': , 'entity_id': 'sensor.reg_number_last_battery_activity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -2478,6 +2523,7 @@ 'context': , 'entity_id': 'sensor.reg_number_mileage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -2491,6 +2537,7 @@ 'context': , 'entity_id': 'sensor.reg_number_outside_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -2502,6 +2549,7 @@ 'context': , 'entity_id': 'sensor.reg_number_hvac_soc_threshold', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -2513,6 +2561,7 @@ 'context': , 'entity_id': 'sensor.reg_number_last_hvac_activity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -2524,6 +2573,7 @@ 'context': , 'entity_id': 'sensor.reg_number_last_location_activity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -2534,6 +2584,7 @@ 'context': , 'entity_id': 'sensor.reg_number_remote_engine_start', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -2544,6 +2595,7 @@ 'context': , 'entity_id': 'sensor.reg_number_remote_engine_start_code', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -2789,6 +2841,7 @@ 'context': , 'entity_id': 'sensor.reg_number_mileage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5567', }), @@ -2802,6 +2855,7 @@ 'context': , 'entity_id': 'sensor.reg_number_fuel_autonomy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '35', }), @@ -2815,6 +2869,7 @@ 'context': , 'entity_id': 'sensor.reg_number_fuel_quantity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3', }), @@ -2826,6 +2881,7 @@ 'context': , 'entity_id': 'sensor.reg_number_last_location_activity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2020-02-18T16:58:38+00:00', }), @@ -2836,6 +2892,7 @@ 'context': , 'entity_id': 'sensor.reg_number_remote_engine_start', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Stopped, ready for RES', }), @@ -2846,6 +2903,7 @@ 'context': , 'entity_id': 'sensor.reg_number_remote_engine_start_code', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10', }), @@ -3400,6 +3458,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '60', }), @@ -3421,6 +3480,7 @@ 'context': , 'entity_id': 'sensor.reg_number_charge_state', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'charge_in_progress', }), @@ -3434,6 +3494,7 @@ 'context': , 'entity_id': 'sensor.reg_number_charging_remaining_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '145', }), @@ -3447,6 +3508,7 @@ 'context': , 'entity_id': 'sensor.reg_number_admissible_charging_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '27.0', }), @@ -3464,6 +3526,7 @@ 'context': , 'entity_id': 'sensor.reg_number_plug_state', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'plugged', }), @@ -3477,6 +3540,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery_autonomy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '141', }), @@ -3490,6 +3554,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery_available_energy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '31', }), @@ -3503,6 +3568,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '20', }), @@ -3514,6 +3580,7 @@ 'context': , 'entity_id': 'sensor.reg_number_last_battery_activity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2020-01-12T21:40:16+00:00', }), @@ -3527,6 +3594,7 @@ 'context': , 'entity_id': 'sensor.reg_number_mileage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5567', }), @@ -3540,6 +3608,7 @@ 'context': , 'entity_id': 'sensor.reg_number_fuel_autonomy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '35', }), @@ -3553,6 +3622,7 @@ 'context': , 'entity_id': 'sensor.reg_number_fuel_quantity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3', }), @@ -3564,6 +3634,7 @@ 'context': , 'entity_id': 'sensor.reg_number_last_location_activity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2020-02-18T16:58:38+00:00', }), @@ -3574,6 +3645,7 @@ 'context': , 'entity_id': 'sensor.reg_number_remote_engine_start', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Stopped, ready for RES', }), @@ -3584,6 +3656,7 @@ 'context': , 'entity_id': 'sensor.reg_number_remote_engine_start_code', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10', }), @@ -4136,6 +4209,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '60', }), @@ -4157,6 +4231,7 @@ 'context': , 'entity_id': 'sensor.reg_number_charge_state', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'charge_in_progress', }), @@ -4170,6 +4245,7 @@ 'context': , 'entity_id': 'sensor.reg_number_charging_remaining_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '145', }), @@ -4183,6 +4259,7 @@ 'context': , 'entity_id': 'sensor.reg_number_charging_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.027', }), @@ -4200,6 +4277,7 @@ 'context': , 'entity_id': 'sensor.reg_number_plug_state', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'plugged', }), @@ -4213,6 +4291,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery_autonomy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '141', }), @@ -4226,6 +4305,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery_available_energy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '31', }), @@ -4239,6 +4319,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '20', }), @@ -4250,6 +4331,7 @@ 'context': , 'entity_id': 'sensor.reg_number_last_battery_activity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2020-01-12T21:40:16+00:00', }), @@ -4263,6 +4345,7 @@ 'context': , 'entity_id': 'sensor.reg_number_mileage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '49114', }), @@ -4276,6 +4359,7 @@ 'context': , 'entity_id': 'sensor.reg_number_outside_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '8.0', }), @@ -4287,6 +4371,7 @@ 'context': , 'entity_id': 'sensor.reg_number_hvac_soc_threshold', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -4298,6 +4383,7 @@ 'context': , 'entity_id': 'sensor.reg_number_last_hvac_activity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -4308,6 +4394,7 @@ 'context': , 'entity_id': 'sensor.reg_number_remote_engine_start', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -4318,6 +4405,7 @@ 'context': , 'entity_id': 'sensor.reg_number_remote_engine_start_code', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -4901,6 +4989,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '50', }), @@ -4922,6 +5011,7 @@ 'context': , 'entity_id': 'sensor.reg_number_charge_state', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'charge_error', }), @@ -4935,6 +5025,7 @@ 'context': , 'entity_id': 'sensor.reg_number_charging_remaining_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -4948,6 +5039,7 @@ 'context': , 'entity_id': 'sensor.reg_number_admissible_charging_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -4965,6 +5057,7 @@ 'context': , 'entity_id': 'sensor.reg_number_plug_state', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unplugged', }), @@ -4978,6 +5071,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery_autonomy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '128', }), @@ -4991,6 +5085,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery_available_energy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }), @@ -5004,6 +5099,7 @@ 'context': , 'entity_id': 'sensor.reg_number_battery_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -5015,6 +5111,7 @@ 'context': , 'entity_id': 'sensor.reg_number_last_battery_activity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2020-11-17T08:06:48+00:00', }), @@ -5028,6 +5125,7 @@ 'context': , 'entity_id': 'sensor.reg_number_mileage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '49114', }), @@ -5041,6 +5139,7 @@ 'context': , 'entity_id': 'sensor.reg_number_outside_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), @@ -5052,6 +5151,7 @@ 'context': , 'entity_id': 'sensor.reg_number_hvac_soc_threshold', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '30.0', }), @@ -5063,6 +5163,7 @@ 'context': , 'entity_id': 'sensor.reg_number_last_hvac_activity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2020-12-03T00:00:00+00:00', }), @@ -5074,6 +5175,7 @@ 'context': , 'entity_id': 'sensor.reg_number_last_location_activity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2020-02-18T16:58:38+00:00', }), @@ -5084,6 +5186,7 @@ 'context': , 'entity_id': 'sensor.reg_number_remote_engine_start', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Stopped, ready for RES', }), @@ -5094,6 +5197,7 @@ 'context': , 'entity_id': 'sensor.reg_number_remote_engine_start_code', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10', }), diff --git a/tests/components/rfxtrx/snapshots/test_event.ambr b/tests/components/rfxtrx/snapshots/test_event.ambr index 99bb0195c65..9fb99bacef3 100644 --- a/tests/components/rfxtrx/snapshots/test_event.ambr +++ b/tests/components/rfxtrx/snapshots/test_event.ambr @@ -34,6 +34,7 @@ 'context': , 'entity_id': 'event.arc_c1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -58,6 +59,7 @@ 'context': , 'entity_id': 'event.arc_d1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -115,6 +117,7 @@ 'context': , 'entity_id': 'event.x10_security_d3dc54_32', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) diff --git a/tests/components/samsungtv/snapshots/test_init.ambr b/tests/components/samsungtv/snapshots/test_init.ambr index 9087c1d95f9..404b9a6b3af 100644 --- a/tests/components/samsungtv/snapshots/test_init.ambr +++ b/tests/components/samsungtv/snapshots/test_init.ambr @@ -14,6 +14,7 @@ 'context': , 'entity_id': 'media_player.any', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/sfr_box/snapshots/test_binary_sensor.ambr b/tests/components/sfr_box/snapshots/test_binary_sensor.ambr index 1333121df87..7422c1395c3 100644 --- a/tests/components/sfr_box/snapshots/test_binary_sensor.ambr +++ b/tests/components/sfr_box/snapshots/test_binary_sensor.ambr @@ -107,6 +107,7 @@ 'context': , 'entity_id': 'binary_sensor.sfr_box_wan_status', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -118,6 +119,7 @@ 'context': , 'entity_id': 'binary_sensor.sfr_box_dsl_status', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -231,6 +233,7 @@ 'context': , 'entity_id': 'binary_sensor.sfr_box_wan_status', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }), @@ -242,6 +245,7 @@ 'context': , 'entity_id': 'binary_sensor.sfr_box_ftth_status', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }), diff --git a/tests/components/sfr_box/snapshots/test_button.ambr b/tests/components/sfr_box/snapshots/test_button.ambr index 0ca62e8caed..0dfbf187f6d 100644 --- a/tests/components/sfr_box/snapshots/test_button.ambr +++ b/tests/components/sfr_box/snapshots/test_button.ambr @@ -76,6 +76,7 @@ 'context': , 'entity_id': 'button.sfr_box_restart', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }), diff --git a/tests/components/sfr_box/snapshots/test_sensor.ambr b/tests/components/sfr_box/snapshots/test_sensor.ambr index be2ee848029..0f39eed9e60 100644 --- a/tests/components/sfr_box/snapshots/test_sensor.ambr +++ b/tests/components/sfr_box/snapshots/test_sensor.ambr @@ -565,6 +565,7 @@ 'context': , 'entity_id': 'sensor.sfr_box_network_infrastructure', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'adsl', }), @@ -577,6 +578,7 @@ 'context': , 'entity_id': 'sensor.sfr_box_voltage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '12251', }), @@ -589,6 +591,7 @@ 'context': , 'entity_id': 'sensor.sfr_box_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '27.56', }), @@ -607,6 +610,7 @@ 'context': , 'entity_id': 'sensor.sfr_box_wan_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'adsl_routed', }), @@ -617,6 +621,7 @@ 'context': , 'entity_id': 'sensor.sfr_box_dsl_line_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'ADSL2+', }), @@ -627,6 +632,7 @@ 'context': , 'entity_id': 'sensor.sfr_box_dsl_counter', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '16', }), @@ -637,6 +643,7 @@ 'context': , 'entity_id': 'sensor.sfr_box_dsl_crc', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }), @@ -650,6 +657,7 @@ 'context': , 'entity_id': 'sensor.sfr_box_dsl_noise_down', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5.8', }), @@ -663,6 +671,7 @@ 'context': , 'entity_id': 'sensor.sfr_box_dsl_noise_up', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '6.0', }), @@ -676,6 +685,7 @@ 'context': , 'entity_id': 'sensor.sfr_box_dsl_attenuation_down', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '28.5', }), @@ -689,6 +699,7 @@ 'context': , 'entity_id': 'sensor.sfr_box_dsl_attenuation_up', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '20.8', }), @@ -702,6 +713,7 @@ 'context': , 'entity_id': 'sensor.sfr_box_dsl_rate_down', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5549', }), @@ -715,6 +727,7 @@ 'context': , 'entity_id': 'sensor.sfr_box_dsl_rate_up', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '187', }), @@ -734,6 +747,7 @@ 'context': , 'entity_id': 'sensor.sfr_box_dsl_line_status', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'no_defect', }), @@ -757,6 +771,7 @@ 'context': , 'entity_id': 'sensor.sfr_box_dsl_training', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'showtime', }), diff --git a/tests/components/streamlabswater/snapshots/test_binary_sensor.ambr b/tests/components/streamlabswater/snapshots/test_binary_sensor.ambr index 6c117a18d75..c74df76e71b 100644 --- a/tests/components/streamlabswater/snapshots/test_binary_sensor.ambr +++ b/tests/components/streamlabswater/snapshots/test_binary_sensor.ambr @@ -40,6 +40,7 @@ 'context': , 'entity_id': 'binary_sensor.water_monitor_away_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/streamlabswater/snapshots/test_sensor.ambr b/tests/components/streamlabswater/snapshots/test_sensor.ambr index cb11852447c..d54cdcafb93 100644 --- a/tests/components/streamlabswater/snapshots/test_sensor.ambr +++ b/tests/components/streamlabswater/snapshots/test_sensor.ambr @@ -45,6 +45,7 @@ 'context': , 'entity_id': 'sensor.water_monitor_daily_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '200.44691536', }) @@ -95,6 +96,7 @@ 'context': , 'entity_id': 'sensor.water_monitor_monthly_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '420.514099294', }) @@ -145,6 +147,7 @@ 'context': , 'entity_id': 'sensor.water_monitor_yearly_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '65432.389256934', }) diff --git a/tests/components/tailwind/snapshots/test_binary_sensor.ambr b/tests/components/tailwind/snapshots/test_binary_sensor.ambr index 6b09714a27e..ea2a539363d 100644 --- a/tests/components/tailwind/snapshots/test_binary_sensor.ambr +++ b/tests/components/tailwind/snapshots/test_binary_sensor.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'binary_sensor.door_1_operational_problem', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -84,6 +85,7 @@ 'context': , 'entity_id': 'binary_sensor.door_2_operational_problem', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/tailwind/snapshots/test_button.ambr b/tests/components/tailwind/snapshots/test_button.ambr index f293b508808..560d3fe692c 100644 --- a/tests/components/tailwind/snapshots/test_button.ambr +++ b/tests/components/tailwind/snapshots/test_button.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'button.tailwind_iq3_identify', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) diff --git a/tests/components/tailwind/snapshots/test_cover.ambr b/tests/components/tailwind/snapshots/test_cover.ambr index d349c555945..0ecd172b2ca 100644 --- a/tests/components/tailwind/snapshots/test_cover.ambr +++ b/tests/components/tailwind/snapshots/test_cover.ambr @@ -9,6 +9,7 @@ 'context': , 'entity_id': 'cover.door_1', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'open', }) @@ -86,6 +87,7 @@ 'context': , 'entity_id': 'cover.door_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'open', }) diff --git a/tests/components/tailwind/snapshots/test_number.ambr b/tests/components/tailwind/snapshots/test_number.ambr index e00827ed761..cbd61d31a6c 100644 --- a/tests/components/tailwind/snapshots/test_number.ambr +++ b/tests/components/tailwind/snapshots/test_number.ambr @@ -12,6 +12,7 @@ 'context': , 'entity_id': 'number.tailwind_iq3_status_led_brightness', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }) diff --git a/tests/components/technove/snapshots/test_binary_sensor.ambr b/tests/components/technove/snapshots/test_binary_sensor.ambr index f90e6e7b442..140526b9391 100644 --- a/tests/components/technove/snapshots/test_binary_sensor.ambr +++ b/tests/components/technove/snapshots/test_binary_sensor.ambr @@ -40,6 +40,7 @@ 'context': , 'entity_id': 'binary_sensor.technove_station_battery_protected', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -86,6 +87,7 @@ 'context': , 'entity_id': 'binary_sensor.technove_station_charging', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -131,6 +133,7 @@ 'context': , 'entity_id': 'binary_sensor.technove_station_conflict_with_power_sharing_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -176,6 +179,7 @@ 'context': , 'entity_id': 'binary_sensor.technove_station_power_sharing_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -221,6 +225,7 @@ 'context': , 'entity_id': 'binary_sensor.technove_station_static_ip', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -267,6 +272,7 @@ 'context': , 'entity_id': 'binary_sensor.technove_station_update', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/technove/snapshots/test_sensor.ambr b/tests/components/technove/snapshots/test_sensor.ambr index ca676ffdca0..149155519d4 100644 --- a/tests/components/technove/snapshots/test_sensor.ambr +++ b/tests/components/technove/snapshots/test_sensor.ambr @@ -45,6 +45,7 @@ 'context': , 'entity_id': 'sensor.technove_station_current', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '23.75', }) @@ -95,6 +96,7 @@ 'context': , 'entity_id': 'sensor.technove_station_input_voltage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '238', }) @@ -145,6 +147,7 @@ 'context': , 'entity_id': 'sensor.technove_station_last_session_energy_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '12.34', }) @@ -195,6 +198,7 @@ 'context': , 'entity_id': 'sensor.technove_station_max_station_current', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '32', }) @@ -245,6 +249,7 @@ 'context': , 'entity_id': 'sensor.technove_station_output_voltage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '238', }) @@ -295,6 +300,7 @@ 'context': , 'entity_id': 'sensor.technove_station_signal_strength', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-82', }) @@ -356,6 +362,7 @@ 'context': , 'entity_id': 'sensor.technove_station_status', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'plugged_charging', }) @@ -406,6 +413,7 @@ 'context': , 'entity_id': 'sensor.technove_station_total_energy_usage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1234', }) @@ -451,6 +459,7 @@ 'context': , 'entity_id': 'sensor.technove_station_wi_fi_network_name', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Connecting...', }) diff --git a/tests/components/technove/snapshots/test_switch.ambr b/tests/components/technove/snapshots/test_switch.ambr index 676646dd347..1a707971fc8 100644 --- a/tests/components/technove/snapshots/test_switch.ambr +++ b/tests/components/technove/snapshots/test_switch.ambr @@ -40,6 +40,7 @@ 'context': , 'entity_id': 'switch.technove_station_auto_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/tedee/snapshots/test_binary_sensor.ambr b/tests/components/tedee/snapshots/test_binary_sensor.ambr index 32820496d9f..8c9dca1bd12 100644 --- a/tests/components/tedee/snapshots/test_binary_sensor.ambr +++ b/tests/components/tedee/snapshots/test_binary_sensor.ambr @@ -107,6 +107,7 @@ 'context': , 'entity_id': 'binary_sensor.lock_1a2b_charging', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -119,6 +120,7 @@ 'context': , 'entity_id': 'binary_sensor.lock_1a2b_pullspring_enabled', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -131,6 +133,7 @@ 'context': , 'entity_id': 'binary_sensor.lock_1a2b_semi_locked', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/tedee/snapshots/test_lock.ambr b/tests/components/tedee/snapshots/test_lock.ambr index d232ab243d9..8e4fc464479 100644 --- a/tests/components/tedee/snapshots/test_lock.ambr +++ b/tests/components/tedee/snapshots/test_lock.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'lock.lock_1a2b', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unlocked', }) @@ -84,6 +85,7 @@ 'context': , 'entity_id': 'lock.lock_2c3d', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unlocked', }) diff --git a/tests/components/tedee/snapshots/test_sensor.ambr b/tests/components/tedee/snapshots/test_sensor.ambr index 5a05a7c7d22..d5f4c8361c3 100644 --- a/tests/components/tedee/snapshots/test_sensor.ambr +++ b/tests/components/tedee/snapshots/test_sensor.ambr @@ -80,6 +80,7 @@ 'context': , 'entity_id': 'sensor.lock_1a2b_battery', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '70', }) @@ -95,6 +96,7 @@ 'context': , 'entity_id': 'sensor.lock_1a2b_pullspring_duration', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) diff --git a/tests/components/template/snapshots/test_binary_sensor.ambr b/tests/components/template/snapshots/test_binary_sensor.ambr index 2529021971a..e809c66e644 100644 --- a/tests/components/template/snapshots/test_binary_sensor.ambr +++ b/tests/components/template/snapshots/test_binary_sensor.ambr @@ -7,6 +7,7 @@ 'context': , 'entity_id': 'binary_sensor.my_template', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -20,6 +21,7 @@ 'context': , 'entity_id': 'binary_sensor.my_template', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/template/snapshots/test_sensor.ambr b/tests/components/template/snapshots/test_sensor.ambr index 7959959dfa9..344761ae45a 100644 --- a/tests/components/template/snapshots/test_sensor.ambr +++ b/tests/components/template/snapshots/test_sensor.ambr @@ -7,6 +7,7 @@ 'context': , 'entity_id': 'sensor.my_template', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '30.0', }) @@ -22,6 +23,7 @@ 'context': , 'entity_id': 'sensor.my_template', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '30.0', }) diff --git a/tests/components/teslemetry/snapshots/test_climate.ambr b/tests/components/teslemetry/snapshots/test_climate.ambr index f0027273ece..097df8bde85 100644 --- a/tests/components/teslemetry/snapshots/test_climate.ambr +++ b/tests/components/teslemetry/snapshots/test_climate.ambr @@ -69,6 +69,7 @@ 'context': , 'entity_id': 'climate.test_climate', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/teslemetry/snapshots/test_sensor.ambr b/tests/components/teslemetry/snapshots/test_sensor.ambr index ec87e5e09e1..fad04d341c9 100644 --- a/tests/components/teslemetry/snapshots/test_sensor.ambr +++ b/tests/components/teslemetry/snapshots/test_sensor.ambr @@ -51,6 +51,7 @@ 'context': , 'entity_id': 'sensor.energy_site_battery_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5.06', }) @@ -66,6 +67,7 @@ 'context': , 'entity_id': 'sensor.energy_site_battery_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5.06', }) @@ -122,6 +124,7 @@ 'context': , 'entity_id': 'sensor.energy_site_energy_left', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '38.8964736842105', }) @@ -137,6 +140,7 @@ 'context': , 'entity_id': 'sensor.energy_site_energy_left', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '38.8964736842105', }) @@ -193,6 +197,7 @@ 'context': , 'entity_id': 'sensor.energy_site_generator_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -208,6 +213,7 @@ 'context': , 'entity_id': 'sensor.energy_site_generator_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -264,6 +270,7 @@ 'context': , 'entity_id': 'sensor.energy_site_grid_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -279,6 +286,7 @@ 'context': , 'entity_id': 'sensor.energy_site_grid_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -335,6 +343,7 @@ 'context': , 'entity_id': 'sensor.energy_site_grid_services_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -350,6 +359,7 @@ 'context': , 'entity_id': 'sensor.energy_site_grid_services_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -406,6 +416,7 @@ 'context': , 'entity_id': 'sensor.energy_site_load_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '6.245', }) @@ -421,6 +432,7 @@ 'context': , 'entity_id': 'sensor.energy_site_load_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '6.245', }) @@ -467,6 +479,7 @@ 'context': , 'entity_id': 'sensor.energy_site_none', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on_grid', }) @@ -480,6 +493,7 @@ 'context': , 'entity_id': 'sensor.energy_site_none', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on_grid', }) @@ -533,6 +547,7 @@ 'context': , 'entity_id': 'sensor.energy_site_percentage_charged', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '95.5053740373966', }) @@ -548,6 +563,7 @@ 'context': , 'entity_id': 'sensor.energy_site_percentage_charged', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '95.5053740373966', }) @@ -604,6 +620,7 @@ 'context': , 'entity_id': 'sensor.energy_site_solar_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.185', }) @@ -619,6 +636,7 @@ 'context': , 'entity_id': 'sensor.energy_site_solar_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.185', }) @@ -675,6 +693,7 @@ 'context': , 'entity_id': 'sensor.energy_site_total_pack_energy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '40.727', }) @@ -690,6 +709,7 @@ 'context': , 'entity_id': 'sensor.energy_site_total_pack_energy', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '40.727', }) @@ -735,6 +755,7 @@ 'context': , 'entity_id': 'sensor.test_battery_level', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -747,6 +768,7 @@ 'context': , 'entity_id': 'sensor.test_battery_level', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -792,6 +814,7 @@ 'context': , 'entity_id': 'sensor.test_battery_range', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -804,6 +827,7 @@ 'context': , 'entity_id': 'sensor.test_battery_range', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -849,6 +873,7 @@ 'context': , 'entity_id': 'sensor.test_charge_cable', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -861,6 +886,7 @@ 'context': , 'entity_id': 'sensor.test_charge_cable', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -906,6 +932,7 @@ 'context': , 'entity_id': 'sensor.test_charge_energy_added', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -918,6 +945,7 @@ 'context': , 'entity_id': 'sensor.test_charge_energy_added', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -963,6 +991,7 @@ 'context': , 'entity_id': 'sensor.test_charge_rate', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -975,6 +1004,7 @@ 'context': , 'entity_id': 'sensor.test_charge_rate', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1020,6 +1050,7 @@ 'context': , 'entity_id': 'sensor.test_charger_current', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1032,6 +1063,7 @@ 'context': , 'entity_id': 'sensor.test_charger_current', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1077,6 +1109,7 @@ 'context': , 'entity_id': 'sensor.test_charger_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1089,6 +1122,7 @@ 'context': , 'entity_id': 'sensor.test_charger_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1134,6 +1168,7 @@ 'context': , 'entity_id': 'sensor.test_charger_voltage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1146,6 +1181,7 @@ 'context': , 'entity_id': 'sensor.test_charger_voltage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1191,6 +1227,7 @@ 'context': , 'entity_id': 'sensor.test_charging', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1203,6 +1240,7 @@ 'context': , 'entity_id': 'sensor.test_charging', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1248,6 +1286,7 @@ 'context': , 'entity_id': 'sensor.test_distance_to_arrival', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1260,6 +1299,7 @@ 'context': , 'entity_id': 'sensor.test_distance_to_arrival', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1305,6 +1345,7 @@ 'context': , 'entity_id': 'sensor.test_driver_temperature_setting', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1317,6 +1358,7 @@ 'context': , 'entity_id': 'sensor.test_driver_temperature_setting', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1362,6 +1404,7 @@ 'context': , 'entity_id': 'sensor.test_estimate_battery_range', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1374,6 +1417,7 @@ 'context': , 'entity_id': 'sensor.test_estimate_battery_range', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1419,6 +1463,7 @@ 'context': , 'entity_id': 'sensor.test_fast_charger_type', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1431,6 +1476,7 @@ 'context': , 'entity_id': 'sensor.test_fast_charger_type', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1476,6 +1522,7 @@ 'context': , 'entity_id': 'sensor.test_ideal_battery_range', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1488,6 +1535,7 @@ 'context': , 'entity_id': 'sensor.test_ideal_battery_range', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1533,6 +1581,7 @@ 'context': , 'entity_id': 'sensor.test_inside_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1545,6 +1594,7 @@ 'context': , 'entity_id': 'sensor.test_inside_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1590,6 +1640,7 @@ 'context': , 'entity_id': 'sensor.test_odometer', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1602,6 +1653,7 @@ 'context': , 'entity_id': 'sensor.test_odometer', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1647,6 +1699,7 @@ 'context': , 'entity_id': 'sensor.test_outside_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1659,6 +1712,7 @@ 'context': , 'entity_id': 'sensor.test_outside_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1704,6 +1758,7 @@ 'context': , 'entity_id': 'sensor.test_passenger_temperature_setting', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1716,6 +1771,7 @@ 'context': , 'entity_id': 'sensor.test_passenger_temperature_setting', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1761,6 +1817,7 @@ 'context': , 'entity_id': 'sensor.test_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1773,6 +1830,7 @@ 'context': , 'entity_id': 'sensor.test_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1818,6 +1876,7 @@ 'context': , 'entity_id': 'sensor.test_shift_state', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1830,6 +1889,7 @@ 'context': , 'entity_id': 'sensor.test_shift_state', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1875,6 +1935,7 @@ 'context': , 'entity_id': 'sensor.test_speed', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1887,6 +1948,7 @@ 'context': , 'entity_id': 'sensor.test_speed', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1932,6 +1994,7 @@ 'context': , 'entity_id': 'sensor.test_state_of_charge_at_arrival', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1944,6 +2007,7 @@ 'context': , 'entity_id': 'sensor.test_state_of_charge_at_arrival', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1990,6 +2054,7 @@ 'context': , 'entity_id': 'sensor.test_time_to_arrival', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2024-01-01T00:00:06+00:00', }) @@ -2003,6 +2068,7 @@ 'context': , 'entity_id': 'sensor.test_time_to_arrival', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -2049,6 +2115,7 @@ 'context': , 'entity_id': 'sensor.test_time_to_full_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -2062,6 +2129,7 @@ 'context': , 'entity_id': 'sensor.test_time_to_full_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -2107,6 +2175,7 @@ 'context': , 'entity_id': 'sensor.test_tire_pressure_front_left', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -2119,6 +2188,7 @@ 'context': , 'entity_id': 'sensor.test_tire_pressure_front_left', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -2164,6 +2234,7 @@ 'context': , 'entity_id': 'sensor.test_tire_pressure_front_right', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -2176,6 +2247,7 @@ 'context': , 'entity_id': 'sensor.test_tire_pressure_front_right', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -2221,6 +2293,7 @@ 'context': , 'entity_id': 'sensor.test_tire_pressure_rear_left', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -2233,6 +2306,7 @@ 'context': , 'entity_id': 'sensor.test_tire_pressure_rear_left', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -2278,6 +2352,7 @@ 'context': , 'entity_id': 'sensor.test_tire_pressure_rear_right', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -2290,6 +2365,7 @@ 'context': , 'entity_id': 'sensor.test_tire_pressure_rear_right', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -2335,6 +2411,7 @@ 'context': , 'entity_id': 'sensor.test_traffic_delay', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -2347,6 +2424,7 @@ 'context': , 'entity_id': 'sensor.test_traffic_delay', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -2392,6 +2470,7 @@ 'context': , 'entity_id': 'sensor.test_usable_battery_level', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -2404,6 +2483,7 @@ 'context': , 'entity_id': 'sensor.test_usable_battery_level', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -2449,6 +2529,7 @@ 'context': , 'entity_id': 'sensor.wall_connector_fault_state_code', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) @@ -2461,6 +2542,7 @@ 'context': , 'entity_id': 'sensor.wall_connector_fault_state_code', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) @@ -2506,6 +2588,7 @@ 'context': , 'entity_id': 'sensor.wall_connector_fault_state_code_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) @@ -2518,6 +2601,7 @@ 'context': , 'entity_id': 'sensor.wall_connector_fault_state_code_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) @@ -2574,6 +2658,7 @@ 'context': , 'entity_id': 'sensor.wall_connector_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -2589,6 +2674,7 @@ 'context': , 'entity_id': 'sensor.wall_connector_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -2645,6 +2731,7 @@ 'context': , 'entity_id': 'sensor.wall_connector_power_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -2660,6 +2747,7 @@ 'context': , 'entity_id': 'sensor.wall_connector_power_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -2705,6 +2793,7 @@ 'context': , 'entity_id': 'sensor.wall_connector_state_code', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) @@ -2717,6 +2806,7 @@ 'context': , 'entity_id': 'sensor.wall_connector_state_code', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) @@ -2762,6 +2852,7 @@ 'context': , 'entity_id': 'sensor.wall_connector_state_code_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) @@ -2774,6 +2865,7 @@ 'context': , 'entity_id': 'sensor.wall_connector_state_code_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) @@ -2819,6 +2911,7 @@ 'context': , 'entity_id': 'sensor.wall_connector_vehicle', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -2831,6 +2924,7 @@ 'context': , 'entity_id': 'sensor.wall_connector_vehicle', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -2876,6 +2970,7 @@ 'context': , 'entity_id': 'sensor.wall_connector_vehicle_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -2888,6 +2983,7 @@ 'context': , 'entity_id': 'sensor.wall_connector_vehicle_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) diff --git a/tests/components/tessie/snapshots/test_binary_sensors.ambr b/tests/components/tessie/snapshots/test_binary_sensors.ambr index cbe7fdba5ec..854e1350234 100644 --- a/tests/components/tessie/snapshots/test_binary_sensors.ambr +++ b/tests/components/tessie/snapshots/test_binary_sensors.ambr @@ -40,6 +40,7 @@ 'context': , 'entity_id': 'binary_sensor.test_auto_seat_climate_left', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -85,6 +86,7 @@ 'context': , 'entity_id': 'binary_sensor.test_auto_seat_climate_right', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -130,6 +132,7 @@ 'context': , 'entity_id': 'binary_sensor.test_auto_steering_wheel_heater', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -176,6 +179,7 @@ 'context': , 'entity_id': 'binary_sensor.test_battery_heater', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -222,6 +226,7 @@ 'context': , 'entity_id': 'binary_sensor.test_cabin_overheat_protection', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -268,6 +273,7 @@ 'context': , 'entity_id': 'binary_sensor.test_cabin_overheat_protection_actively_cooling', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -314,6 +320,7 @@ 'context': , 'entity_id': 'binary_sensor.test_charge_cable', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -360,6 +367,7 @@ 'context': , 'entity_id': 'binary_sensor.test_charging', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -406,6 +414,7 @@ 'context': , 'entity_id': 'binary_sensor.test_dashcam', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -452,6 +461,7 @@ 'context': , 'entity_id': 'binary_sensor.test_front_driver_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -498,6 +508,7 @@ 'context': , 'entity_id': 'binary_sensor.test_front_driver_window', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -544,6 +555,7 @@ 'context': , 'entity_id': 'binary_sensor.test_front_passenger_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -590,6 +602,7 @@ 'context': , 'entity_id': 'binary_sensor.test_front_passenger_window', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -635,6 +648,7 @@ 'context': , 'entity_id': 'binary_sensor.test_preconditioning_enabled', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -681,6 +695,7 @@ 'context': , 'entity_id': 'binary_sensor.test_rear_driver_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -727,6 +742,7 @@ 'context': , 'entity_id': 'binary_sensor.test_rear_driver_window', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -773,6 +789,7 @@ 'context': , 'entity_id': 'binary_sensor.test_rear_passenger_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -819,6 +836,7 @@ 'context': , 'entity_id': 'binary_sensor.test_rear_passenger_window', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -864,6 +882,7 @@ 'context': , 'entity_id': 'binary_sensor.test_scheduled_charging_pending', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -910,6 +929,7 @@ 'context': , 'entity_id': 'binary_sensor.test_status', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -956,6 +976,7 @@ 'context': , 'entity_id': 'binary_sensor.test_tire_pressure_warning_front_left', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -1002,6 +1023,7 @@ 'context': , 'entity_id': 'binary_sensor.test_tire_pressure_warning_front_right', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -1048,6 +1070,7 @@ 'context': , 'entity_id': 'binary_sensor.test_tire_pressure_warning_rear_left', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -1094,6 +1117,7 @@ 'context': , 'entity_id': 'binary_sensor.test_tire_pressure_warning_rear_right', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -1139,6 +1163,7 @@ 'context': , 'entity_id': 'binary_sensor.test_trip_charging', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -1185,6 +1210,7 @@ 'context': , 'entity_id': 'binary_sensor.test_user_present', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/tessie/snapshots/test_button.ambr b/tests/components/tessie/snapshots/test_button.ambr index c67c2932995..7757d1f2fea 100644 --- a/tests/components/tessie/snapshots/test_button.ambr +++ b/tests/components/tessie/snapshots/test_button.ambr @@ -40,6 +40,7 @@ 'context': , 'entity_id': 'button.test_flash_lights', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -85,6 +86,7 @@ 'context': , 'entity_id': 'button.test_homelink', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -130,6 +132,7 @@ 'context': , 'entity_id': 'button.test_honk_horn', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -175,6 +178,7 @@ 'context': , 'entity_id': 'button.test_keyless_driving', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -220,6 +224,7 @@ 'context': , 'entity_id': 'button.test_play_fart', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -265,6 +270,7 @@ 'context': , 'entity_id': 'button.test_wake', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) diff --git a/tests/components/tessie/snapshots/test_climate.ambr b/tests/components/tessie/snapshots/test_climate.ambr index acefc953d3c..959b42cea53 100644 --- a/tests/components/tessie/snapshots/test_climate.ambr +++ b/tests/components/tessie/snapshots/test_climate.ambr @@ -69,6 +69,7 @@ 'context': , 'entity_id': 'climate.test_climate', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/tessie/snapshots/test_cover.ambr b/tests/components/tessie/snapshots/test_cover.ambr index 29930677396..ff04c528244 100644 --- a/tests/components/tessie/snapshots/test_cover.ambr +++ b/tests/components/tessie/snapshots/test_cover.ambr @@ -42,6 +42,7 @@ 'context': , 'entity_id': 'cover.test_charge_port_door', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'open', }) @@ -89,6 +90,7 @@ 'context': , 'entity_id': 'cover.test_frunk', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'closed', }) @@ -136,6 +138,7 @@ 'context': , 'entity_id': 'cover.test_trunk', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'closed', }) @@ -183,6 +186,7 @@ 'context': , 'entity_id': 'cover.test_vent_windows', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'closed', }) diff --git a/tests/components/tessie/snapshots/test_device_tracker.ambr b/tests/components/tessie/snapshots/test_device_tracker.ambr index 640b91627d5..61f89db8637 100644 --- a/tests/components/tessie/snapshots/test_device_tracker.ambr +++ b/tests/components/tessie/snapshots/test_device_tracker.ambr @@ -46,6 +46,7 @@ 'context': , 'entity_id': 'device_tracker.test_location', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'not_home', }) @@ -95,6 +96,7 @@ 'context': , 'entity_id': 'device_tracker.test_route', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'not_home', }) diff --git a/tests/components/tessie/snapshots/test_lock.ambr b/tests/components/tessie/snapshots/test_lock.ambr index a01b14bf00a..1eff418b202 100644 --- a/tests/components/tessie/snapshots/test_lock.ambr +++ b/tests/components/tessie/snapshots/test_lock.ambr @@ -41,6 +41,7 @@ 'context': , 'entity_id': 'lock.test_charge_cable_lock', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'locked', }) @@ -87,6 +88,7 @@ 'context': , 'entity_id': 'lock.test_lock', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'locked', }) @@ -134,6 +136,7 @@ 'context': , 'entity_id': 'lock.test_speed_limit', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unlocked', }) diff --git a/tests/components/tessie/snapshots/test_media_player.ambr b/tests/components/tessie/snapshots/test_media_player.ambr index b8bf84c726c..d30e6c74aef 100644 --- a/tests/components/tessie/snapshots/test_media_player.ambr +++ b/tests/components/tessie/snapshots/test_media_player.ambr @@ -44,6 +44,7 @@ 'context': , 'entity_id': 'media_player.test_media_player', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'idle', }) @@ -59,6 +60,7 @@ 'context': , 'entity_id': 'media_player.test_media_player', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'idle', }) diff --git a/tests/components/tessie/snapshots/test_number.ambr b/tests/components/tessie/snapshots/test_number.ambr index 33abf438128..c91fb74adeb 100644 --- a/tests/components/tessie/snapshots/test_number.ambr +++ b/tests/components/tessie/snapshots/test_number.ambr @@ -51,6 +51,7 @@ 'context': , 'entity_id': 'number.test_charge_current', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '32', }) @@ -107,6 +108,7 @@ 'context': , 'entity_id': 'number.test_charge_limit', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '80', }) @@ -163,6 +165,7 @@ 'context': , 'entity_id': 'number.test_speed_limit', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '74.564543', }) diff --git a/tests/components/tessie/snapshots/test_select.ambr b/tests/components/tessie/snapshots/test_select.ambr index 758bb1c91d8..fc076aabf14 100644 --- a/tests/components/tessie/snapshots/test_select.ambr +++ b/tests/components/tessie/snapshots/test_select.ambr @@ -53,6 +53,7 @@ 'context': , 'entity_id': 'select.test_seat_heater_left', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -111,6 +112,7 @@ 'context': , 'entity_id': 'select.test_seat_heater_rear_center', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -169,6 +171,7 @@ 'context': , 'entity_id': 'select.test_seat_heater_rear_left', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -227,6 +230,7 @@ 'context': , 'entity_id': 'select.test_seat_heater_rear_right', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -285,6 +289,7 @@ 'context': , 'entity_id': 'select.test_seat_heater_right', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -303,6 +308,7 @@ 'context': , 'entity_id': 'select.test_seat_heater_left', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'low', }) diff --git a/tests/components/tessie/snapshots/test_sensor.ambr b/tests/components/tessie/snapshots/test_sensor.ambr index b05fe3a67d9..48beab6133c 100644 --- a/tests/components/tessie/snapshots/test_sensor.ambr +++ b/tests/components/tessie/snapshots/test_sensor.ambr @@ -45,6 +45,7 @@ 'context': , 'entity_id': 'sensor.test_battery_level', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '75', }) @@ -101,6 +102,7 @@ 'context': , 'entity_id': 'sensor.test_battery_range', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '424.35182592', }) @@ -157,6 +159,7 @@ 'context': , 'entity_id': 'sensor.test_battery_range_estimate', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '522.60227712', }) @@ -213,6 +216,7 @@ 'context': , 'entity_id': 'sensor.test_battery_range_ideal', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '424.35182592', }) @@ -266,6 +270,7 @@ 'context': , 'entity_id': 'sensor.test_charge_energy_added', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '18.47', }) @@ -319,6 +324,7 @@ 'context': , 'entity_id': 'sensor.test_charge_rate', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '49.2', }) @@ -369,6 +375,7 @@ 'context': , 'entity_id': 'sensor.test_charger_current', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '32', }) @@ -419,6 +426,7 @@ 'context': , 'entity_id': 'sensor.test_charger_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '7', }) @@ -469,6 +477,7 @@ 'context': , 'entity_id': 'sensor.test_charger_voltage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '224', }) @@ -532,6 +541,7 @@ 'context': , 'entity_id': 'sensor.test_charging', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'charging', }) @@ -577,6 +587,7 @@ 'context': , 'entity_id': 'sensor.test_destination', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Giga Texas', }) @@ -666,6 +677,7 @@ 'context': , 'entity_id': 'sensor.test_distance_to_arrival', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '75.168198', }) @@ -719,6 +731,7 @@ 'context': , 'entity_id': 'sensor.test_driver_temperature_setting', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '22.5', }) @@ -772,6 +785,7 @@ 'context': , 'entity_id': 'sensor.test_inside_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '30.4', }) @@ -828,6 +842,7 @@ 'context': , 'entity_id': 'sensor.test_odometer', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '8778.15941765875', }) @@ -881,6 +896,7 @@ 'context': , 'entity_id': 'sensor.test_outside_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '30.5', }) @@ -934,6 +950,7 @@ 'context': , 'entity_id': 'sensor.test_passenger_temperature_setting', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '22.5', }) @@ -984,6 +1001,7 @@ 'context': , 'entity_id': 'sensor.test_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '-7', }) @@ -1043,6 +1061,7 @@ 'context': , 'entity_id': 'sensor.test_shift_state', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1096,6 +1115,7 @@ 'context': , 'entity_id': 'sensor.test_speed', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1146,6 +1166,7 @@ 'context': , 'entity_id': 'sensor.test_state_of_charge_at_arrival', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '65', }) @@ -1192,6 +1213,7 @@ 'context': , 'entity_id': 'sensor.test_time_to_arrival', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2024-01-01T00:59:12+00:00', }) @@ -1238,6 +1260,7 @@ 'context': , 'entity_id': 'sensor.test_time_to_full_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -1294,6 +1317,7 @@ 'context': , 'entity_id': 'sensor.test_tire_pressure_front_left', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '43.1487288094417', }) @@ -1350,6 +1374,7 @@ 'context': , 'entity_id': 'sensor.test_tire_pressure_front_right', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '43.1487288094417', }) @@ -1406,6 +1431,7 @@ 'context': , 'entity_id': 'sensor.test_tire_pressure_rear_left', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '42.7861344496985', }) @@ -1462,6 +1488,7 @@ 'context': , 'entity_id': 'sensor.test_tire_pressure_rear_right', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '42.7861344496985', }) @@ -1512,6 +1539,7 @@ 'context': , 'entity_id': 'sensor.test_traffic_delay', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) diff --git a/tests/components/tessie/snapshots/test_switch.ambr b/tests/components/tessie/snapshots/test_switch.ambr index a70210f8fbf..db06e028198 100644 --- a/tests/components/tessie/snapshots/test_switch.ambr +++ b/tests/components/tessie/snapshots/test_switch.ambr @@ -41,6 +41,7 @@ 'context': , 'entity_id': 'switch.test_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -87,6 +88,7 @@ 'context': , 'entity_id': 'switch.test_defrost_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -133,6 +135,7 @@ 'context': , 'entity_id': 'switch.test_sentry_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -179,6 +182,7 @@ 'context': , 'entity_id': 'switch.test_steering_wheel_heater', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -225,6 +229,7 @@ 'context': , 'entity_id': 'switch.test_valet_mode', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -238,6 +243,7 @@ 'context': , 'entity_id': 'switch.test_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -251,6 +257,7 @@ 'context': , 'entity_id': 'switch.test_charge', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/tessie/snapshots/test_update.ambr b/tests/components/tessie/snapshots/test_update.ambr index 6690bbf8651..622cf69c7f0 100644 --- a/tests/components/tessie/snapshots/test_update.ambr +++ b/tests/components/tessie/snapshots/test_update.ambr @@ -50,6 +50,7 @@ 'context': , 'entity_id': 'update.test_update', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/tplink_omada/snapshots/test_switch.ambr b/tests/components/tplink_omada/snapshots/test_switch.ambr index 872c9b8eeff..8a08cbc292d 100644 --- a/tests/components/tplink_omada/snapshots/test_switch.ambr +++ b/tests/components/tplink_omada/snapshots/test_switch.ambr @@ -7,6 +7,7 @@ 'context': , 'entity_id': 'switch.test_router_port_4_internet_connected', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -19,6 +20,7 @@ 'context': , 'entity_id': 'switch.test_router_port_4_internet_connected', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -44,6 +46,7 @@ 'context': , 'entity_id': 'switch.test_router_port_4_internet_connected', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -56,6 +59,7 @@ 'context': , 'entity_id': 'switch.test_poe_switch_port_1_poe', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -101,6 +105,7 @@ 'context': , 'entity_id': 'switch.test_poe_switch_port_6_poe', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -146,6 +151,7 @@ 'context': , 'entity_id': 'switch.test_poe_switch_port_7_poe', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -191,6 +197,7 @@ 'context': , 'entity_id': 'switch.test_poe_switch_port_8_poe', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -236,6 +243,7 @@ 'context': , 'entity_id': 'switch.test_poe_switch_port_2_renamed_port_poe', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -281,6 +289,7 @@ 'context': , 'entity_id': 'switch.test_poe_switch_port_3_poe', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -326,6 +335,7 @@ 'context': , 'entity_id': 'switch.test_poe_switch_port_4_poe', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -371,6 +381,7 @@ 'context': , 'entity_id': 'switch.test_poe_switch_port_5_poe', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/trafikverket_train/snapshots/test_sensor.ambr b/tests/components/trafikverket_train/snapshots/test_sensor.ambr index 96a38b828f4..cae0457bbff 100644 --- a/tests/components/trafikverket_train/snapshots/test_sensor.ambr +++ b/tests/components/trafikverket_train/snapshots/test_sensor.ambr @@ -10,6 +10,7 @@ 'context': , 'entity_id': 'sensor.stockholm_c_to_uppsala_c_departure_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2023-05-01T12:00:00+00:00', }) @@ -30,6 +31,7 @@ 'context': , 'entity_id': 'sensor.stockholm_c_to_uppsala_c_departure_state', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on_time', }) @@ -45,6 +47,7 @@ 'context': , 'entity_id': 'sensor.stockholm_c_to_uppsala_c_departure_time_next', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2023-05-01T17:15:00+00:00', }) @@ -60,6 +63,7 @@ 'context': , 'entity_id': 'sensor.stockholm_c_to_uppsala_c_departure_time_next_after', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2023-05-01T17:30:00+00:00', }) @@ -75,6 +79,7 @@ 'context': , 'entity_id': 'sensor.stockholm_c_to_uppsala_c_actual_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2023-05-01T12:00:00+00:00', }) @@ -89,6 +94,7 @@ 'context': , 'entity_id': 'sensor.stockholm_c_to_uppsala_c_other_information', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Some other info', }) @@ -104,6 +110,7 @@ 'context': , 'entity_id': 'sensor.stockholm_c_to_uppsala_c_departure_time_next', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2023-05-01T12:15:00+00:00', }) @@ -119,6 +126,7 @@ 'context': , 'entity_id': 'sensor.stockholm_c_to_uppsala_c_departure_time_next_after', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2023-05-01T12:30:00+00:00', }) @@ -134,6 +142,7 @@ 'context': , 'entity_id': 'sensor.stockholm_c_to_uppsala_c_departure_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2023-05-01T17:00:00+00:00', }) @@ -154,6 +163,7 @@ 'context': , 'entity_id': 'sensor.stockholm_c_to_uppsala_c_departure_state', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on_time', }) @@ -169,6 +179,7 @@ 'context': , 'entity_id': 'sensor.stockholm_c_to_uppsala_c_actual_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2023-05-01T17:00:00+00:00', }) @@ -183,6 +194,7 @@ 'context': , 'entity_id': 'sensor.stockholm_c_to_uppsala_c_other_information', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) @@ -197,6 +209,7 @@ 'context': , 'entity_id': 'sensor.stockholm_c_to_uppsala_c_departure_time_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2023-05-01T11:00:00+00:00', }) diff --git a/tests/components/twentemilieu/snapshots/test_calendar.ambr b/tests/components/twentemilieu/snapshots/test_calendar.ambr index d04cec1a1de..78b2d56afca 100644 --- a/tests/components/twentemilieu/snapshots/test_calendar.ambr +++ b/tests/components/twentemilieu/snapshots/test_calendar.ambr @@ -39,6 +39,7 @@ 'context': , 'entity_id': 'calendar.twente_milieu', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/twentemilieu/snapshots/test_sensor.ambr b/tests/components/twentemilieu/snapshots/test_sensor.ambr index bedad263251..a0f3b75da57 100644 --- a/tests/components/twentemilieu/snapshots/test_sensor.ambr +++ b/tests/components/twentemilieu/snapshots/test_sensor.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'sensor.twente_milieu_christmas_tree_pickup', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2022-01-06', }) @@ -84,6 +85,7 @@ 'context': , 'entity_id': 'sensor.twente_milieu_non_recyclable_waste_pickup', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2021-11-01', }) @@ -160,6 +162,7 @@ 'context': , 'entity_id': 'sensor.twente_milieu_organic_waste_pickup', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2021-11-02', }) @@ -236,6 +239,7 @@ 'context': , 'entity_id': 'sensor.twente_milieu_packages_waste_pickup', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2021-11-03', }) @@ -312,6 +316,7 @@ 'context': , 'entity_id': 'sensor.twente_milieu_paper_waste_pickup', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) diff --git a/tests/components/uptime/snapshots/test_sensor.ambr b/tests/components/uptime/snapshots/test_sensor.ambr index d44108c2151..0e7ae6dceaa 100644 --- a/tests/components/uptime/snapshots/test_sensor.ambr +++ b/tests/components/uptime/snapshots/test_sensor.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'sensor.uptime', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2022-03-01T00:00:00+00:00', }) diff --git a/tests/components/valve/snapshots/test_init.ambr b/tests/components/valve/snapshots/test_init.ambr index b46d76b6f0c..815f902afad 100644 --- a/tests/components/valve/snapshots/test_init.ambr +++ b/tests/components/valve/snapshots/test_init.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'valve.valve', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'open', }) @@ -22,6 +23,7 @@ 'context': , 'entity_id': 'valve.valve_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'open', }) @@ -36,6 +38,7 @@ 'context': , 'entity_id': 'valve.valve', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -50,6 +53,7 @@ 'context': , 'entity_id': 'valve.valve_2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) diff --git a/tests/components/vesync/snapshots/test_diagnostics.ambr b/tests/components/vesync/snapshots/test_diagnostics.ambr index b2ae7b53cf5..fcb2cc7b286 100644 --- a/tests/components/vesync/snapshots/test_diagnostics.ambr +++ b/tests/components/vesync/snapshots/test_diagnostics.ambr @@ -207,6 +207,7 @@ }), 'entity_id': 'fan.fan', 'last_changed': str, + 'last_reported': str, 'last_updated': str, 'state': 'unavailable', }), @@ -230,6 +231,7 @@ }), 'entity_id': 'sensor.fan_air_quality', 'last_changed': str, + 'last_reported': str, 'last_updated': str, 'state': 'unavailable', }), @@ -255,6 +257,7 @@ }), 'entity_id': 'sensor.fan_filter_lifetime', 'last_changed': str, + 'last_reported': str, 'last_updated': str, 'state': 'unavailable', }), diff --git a/tests/components/vesync/snapshots/test_fan.ambr b/tests/components/vesync/snapshots/test_fan.ambr index 74c9a916880..59304e92d9d 100644 --- a/tests/components/vesync/snapshots/test_fan.ambr +++ b/tests/components/vesync/snapshots/test_fan.ambr @@ -84,6 +84,7 @@ 'context': , 'entity_id': 'fan.air_purifier_131s', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -178,6 +179,7 @@ 'context': , 'entity_id': 'fan.air_purifier_200s', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -274,6 +276,7 @@ 'context': , 'entity_id': 'fan.air_purifier_400s', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -370,6 +373,7 @@ 'context': , 'entity_id': 'fan.air_purifier_600s', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/vesync/snapshots/test_light.ambr b/tests/components/vesync/snapshots/test_light.ambr index d3a26d5cece..9990395a36c 100644 --- a/tests/components/vesync/snapshots/test_light.ambr +++ b/tests/components/vesync/snapshots/test_light.ambr @@ -226,6 +226,7 @@ 'context': , 'entity_id': 'light.dimmable_light', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -315,6 +316,7 @@ 'context': , 'entity_id': 'light.dimmer_switch', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -469,6 +471,7 @@ 'context': , 'entity_id': 'light.temperature_light', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/vesync/snapshots/test_sensor.ambr b/tests/components/vesync/snapshots/test_sensor.ambr index 4caa2220760..268718fb2fe 100644 --- a/tests/components/vesync/snapshots/test_sensor.ambr +++ b/tests/components/vesync/snapshots/test_sensor.ambr @@ -107,6 +107,7 @@ 'context': , 'entity_id': 'sensor.air_purifier_131s_air_quality', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -121,6 +122,7 @@ 'context': , 'entity_id': 'sensor.air_purifier_131s_filter_lifetime', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -204,6 +206,7 @@ 'context': , 'entity_id': 'sensor.air_purifier_200s_filter_lifetime', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '99', }) @@ -349,6 +352,7 @@ 'context': , 'entity_id': 'sensor.air_purifier_400s_air_quality', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }) @@ -363,6 +367,7 @@ 'context': , 'entity_id': 'sensor.air_purifier_400s_filter_lifetime', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '99', }) @@ -378,6 +383,7 @@ 'context': , 'entity_id': 'sensor.air_purifier_400s_pm2_5', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1', }) @@ -523,6 +529,7 @@ 'context': , 'entity_id': 'sensor.air_purifier_600s_air_quality', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }) @@ -537,6 +544,7 @@ 'context': , 'entity_id': 'sensor.air_purifier_600s_filter_lifetime', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '99', }) @@ -552,6 +560,7 @@ 'context': , 'entity_id': 'sensor.air_purifier_600s_pm2_5', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1', }) @@ -889,6 +898,7 @@ 'context': , 'entity_id': 'sensor.outlet_current_power', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '25.0', }) @@ -904,6 +914,7 @@ 'context': , 'entity_id': 'sensor.outlet_current_voltage', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '120.0', }) @@ -919,6 +930,7 @@ 'context': , 'entity_id': 'sensor.outlet_energy_use_monthly', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -934,6 +946,7 @@ 'context': , 'entity_id': 'sensor.outlet_energy_use_today', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }) @@ -949,6 +962,7 @@ 'context': , 'entity_id': 'sensor.outlet_energy_use_weekly', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -964,6 +978,7 @@ 'context': , 'entity_id': 'sensor.outlet_energy_use_yearly', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) diff --git a/tests/components/vesync/snapshots/test_switch.ambr b/tests/components/vesync/snapshots/test_switch.ambr index eb23f749152..3df26f74bcf 100644 --- a/tests/components/vesync/snapshots/test_switch.ambr +++ b/tests/components/vesync/snapshots/test_switch.ambr @@ -306,6 +306,7 @@ 'context': , 'entity_id': 'switch.outlet', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -421,6 +422,7 @@ 'context': , 'entity_id': 'switch.wall_switch', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/vesync/test_diagnostics.py b/tests/components/vesync/test_diagnostics.py index 22968c79730..04696f01631 100644 --- a/tests/components/vesync/test_diagnostics.py +++ b/tests/components/vesync/test_diagnostics.py @@ -93,10 +93,13 @@ async def test_async_get_device_diagnostics__single_fan( matcher=path_type( { "home_assistant.entities.0.state.last_changed": (str,), + "home_assistant.entities.0.state.last_reported": (str,), "home_assistant.entities.0.state.last_updated": (str,), "home_assistant.entities.1.state.last_changed": (str,), + "home_assistant.entities.1.state.last_reported": (str,), "home_assistant.entities.1.state.last_updated": (str,), "home_assistant.entities.2.state.last_changed": (str,), + "home_assistant.entities.2.state.last_reported": (str,), "home_assistant.entities.2.state.last_updated": (str,), } ) diff --git a/tests/components/vicare/snapshots/test_binary_sensor.ambr b/tests/components/vicare/snapshots/test_binary_sensor.ambr index 002031a7491..7454f914435 100644 --- a/tests/components/vicare/snapshots/test_binary_sensor.ambr +++ b/tests/components/vicare/snapshots/test_binary_sensor.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'binary_sensor.model0_burner', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -21,6 +22,7 @@ 'context': , 'entity_id': 'binary_sensor.model0_circulation_pump', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -33,6 +35,7 @@ 'context': , 'entity_id': 'binary_sensor.model0_frost_protection', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) diff --git a/tests/components/waqi/snapshots/test_sensor.ambr b/tests/components/waqi/snapshots/test_sensor.ambr index 029b36b3c16..f476514a6c7 100644 --- a/tests/components/waqi/snapshots/test_sensor.ambr +++ b/tests/components/waqi/snapshots/test_sensor.ambr @@ -20,6 +20,7 @@ 'context': , 'entity_id': 'sensor.de_jongweg_utrecht_air_quality_index', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '29', }) @@ -36,6 +37,7 @@ 'context': , 'entity_id': 'sensor.de_jongweg_utrecht_humidity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '80', }) @@ -50,6 +52,7 @@ 'context': , 'entity_id': 'sensor.de_jongweg_utrecht_visbility_using_nephelometry', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '80', }) @@ -73,6 +76,7 @@ 'context': , 'entity_id': 'sensor.de_jongweg_utrecht_dominant_pollutant', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'o3', }) @@ -89,6 +93,7 @@ 'context': , 'entity_id': 'sensor.de_jongweg_utrecht_pressure', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1008.8', }) @@ -105,6 +110,7 @@ 'context': , 'entity_id': 'sensor.de_jongweg_utrecht_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '16', }) @@ -119,6 +125,7 @@ 'context': , 'entity_id': 'sensor.de_jongweg_utrecht_carbon_monoxide', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2.3', }) @@ -133,6 +140,7 @@ 'context': , 'entity_id': 'sensor.de_jongweg_utrecht_nitrogen_dioxide', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2.3', }) @@ -147,6 +155,7 @@ 'context': , 'entity_id': 'sensor.de_jongweg_utrecht_ozone', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '29.4', }) @@ -161,6 +170,7 @@ 'context': , 'entity_id': 'sensor.de_jongweg_utrecht_sulphur_dioxide', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2.3', }) @@ -175,6 +185,7 @@ 'context': , 'entity_id': 'sensor.de_jongweg_utrecht_pm10', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '12', }) @@ -189,6 +200,7 @@ 'context': , 'entity_id': 'sensor.de_jongweg_utrecht_pm2_5', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '17', }) diff --git a/tests/components/webmin/snapshots/test_sensor.ambr b/tests/components/webmin/snapshots/test_sensor.ambr index 93f8bcc3709..1813dd354d3 100644 --- a/tests/components/webmin/snapshots/test_sensor.ambr +++ b/tests/components/webmin/snapshots/test_sensor.ambr @@ -43,6 +43,7 @@ 'context': , 'entity_id': 'sensor.192_168_1_1_load_15m', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.37', }) @@ -91,6 +92,7 @@ 'context': , 'entity_id': 'sensor.192_168_1_1_load_1m', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.29', }) @@ -139,6 +141,7 @@ 'context': , 'entity_id': 'sensor.192_168_1_1_load_5m', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.36', }) @@ -195,6 +198,7 @@ 'context': , 'entity_id': 'sensor.192_168_1_1_memory_free', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '27.2087860107422', }) @@ -251,6 +255,7 @@ 'context': , 'entity_id': 'sensor.192_168_1_1_memory_total', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '31.248420715332', }) @@ -307,6 +312,7 @@ 'context': , 'entity_id': 'sensor.192_168_1_1_swap_free', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.85430908203125', }) @@ -363,6 +369,7 @@ 'context': , 'entity_id': 'sensor.192_168_1_1_swap_total', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1.86260986328125', }) diff --git a/tests/components/whois/snapshots/test_sensor.ambr b/tests/components/whois/snapshots/test_sensor.ambr index 52909edf0b1..61762c36e59 100644 --- a/tests/components/whois/snapshots/test_sensor.ambr +++ b/tests/components/whois/snapshots/test_sensor.ambr @@ -7,6 +7,7 @@ 'context': , 'entity_id': 'sensor.home_assistant_io_admin', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'admin@example.com', }) @@ -83,6 +84,7 @@ 'context': , 'entity_id': 'sensor.home_assistant_io_created', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2019-01-01T00:00:00+00:00', }) @@ -163,6 +165,7 @@ 'context': , 'entity_id': 'sensor.home_assistant_io_days_until_expiration', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '364', }) @@ -239,6 +242,7 @@ 'context': , 'entity_id': 'sensor.home_assistant_io_expires', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2023-01-01T00:00:00+00:00', }) @@ -315,6 +319,7 @@ 'context': , 'entity_id': 'sensor.home_assistant_io_last_updated', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2021-12-31T23:00:00+00:00', }) @@ -390,6 +395,7 @@ 'context': , 'entity_id': 'sensor.home_assistant_io_owner', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'owner@example.com', }) @@ -465,6 +471,7 @@ 'context': , 'entity_id': 'sensor.home_assistant_io_registrant', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'registrant@example.com', }) @@ -540,6 +547,7 @@ 'context': , 'entity_id': 'sensor.home_assistant_io_registrar', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'My Registrar', }) @@ -615,6 +623,7 @@ 'context': , 'entity_id': 'sensor.home_assistant_io_reseller', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Top Domains, Low Prices', }) @@ -691,6 +700,7 @@ 'context': , 'entity_id': 'sensor.home_assistant_io_last_updated', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2021-12-31T23:00:00+00:00', }) diff --git a/tests/components/withings/snapshots/test_sensor.ambr b/tests/components/withings/snapshots/test_sensor.ambr index aeaa371b0e5..37635ece403 100644 --- a/tests/components/withings/snapshots/test_sensor.ambr +++ b/tests/components/withings/snapshots/test_sensor.ambr @@ -48,6 +48,7 @@ 'context': , 'entity_id': 'sensor.henk_active_calories_burnt_today', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '221.132', }) @@ -102,6 +103,7 @@ 'context': , 'entity_id': 'sensor.henk_active_time_today', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.530', }) @@ -151,6 +153,7 @@ 'context': , 'entity_id': 'sensor.henk_average_heart_rate', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '103', }) @@ -200,6 +203,7 @@ 'context': , 'entity_id': 'sensor.henk_average_respiratory_rate', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '14', }) @@ -250,6 +254,7 @@ 'context': , 'entity_id': 'sensor.henk_body_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '40', }) @@ -303,6 +308,7 @@ 'context': , 'entity_id': 'sensor.henk_bone_mass', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10', }) @@ -351,6 +357,7 @@ 'context': , 'entity_id': 'sensor.henk_breathing_disturbances_intensity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '9', }) @@ -400,6 +407,7 @@ 'context': , 'entity_id': 'sensor.henk_calories_burnt_last_workout', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '24', }) @@ -450,6 +458,7 @@ 'context': , 'entity_id': 'sensor.henk_deep_sleep', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5820', }) @@ -499,6 +508,7 @@ 'context': , 'entity_id': 'sensor.henk_diastolic_blood_pressure', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '70', }) @@ -549,6 +559,7 @@ 'context': , 'entity_id': 'sensor.henk_distance_travelled_last_workout', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '232', }) @@ -603,6 +614,7 @@ 'context': , 'entity_id': 'sensor.henk_distance_travelled_today', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1020.121', }) @@ -649,6 +661,7 @@ 'context': , 'entity_id': 'sensor.henk_electrodermal_activity_feet', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '102', }) @@ -695,6 +708,7 @@ 'context': , 'entity_id': 'sensor.henk_electrodermal_activity_left_foot', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '102', }) @@ -741,6 +755,7 @@ 'context': , 'entity_id': 'sensor.henk_electrodermal_activity_right_foot', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '102', }) @@ -788,6 +803,7 @@ 'context': , 'entity_id': 'sensor.henk_elevation_change_last_workout', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '4', }) @@ -839,6 +855,7 @@ 'context': , 'entity_id': 'sensor.henk_elevation_change_today', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -889,6 +906,7 @@ 'context': , 'entity_id': 'sensor.henk_extracellular_water', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }) @@ -942,6 +960,7 @@ 'context': , 'entity_id': 'sensor.henk_fat_free_mass', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '60', }) @@ -995,6 +1014,7 @@ 'context': , 'entity_id': 'sensor.henk_fat_mass', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '5', }) @@ -1047,6 +1067,7 @@ 'context': , 'entity_id': 'sensor.henk_fat_ratio', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.07', }) @@ -1096,6 +1117,7 @@ 'context': , 'entity_id': 'sensor.henk_heart_pulse', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '60', }) @@ -1149,6 +1171,7 @@ 'context': , 'entity_id': 'sensor.henk_height', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2', }) @@ -1199,6 +1222,7 @@ 'context': , 'entity_id': 'sensor.henk_hydration', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.95', }) @@ -1253,6 +1277,7 @@ 'context': , 'entity_id': 'sensor.henk_intense_activity_today', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '7.0', }) @@ -1303,6 +1328,7 @@ 'context': , 'entity_id': 'sensor.henk_intracellular_water', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }) @@ -1353,6 +1379,7 @@ 'context': , 'entity_id': 'sensor.henk_last_workout_duration', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '4.25', }) @@ -1398,6 +1425,7 @@ 'context': , 'entity_id': 'sensor.henk_last_workout_intensity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '30', }) @@ -1547,6 +1575,7 @@ 'context': , 'entity_id': 'sensor.henk_last_workout_type', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'walk', }) @@ -1597,6 +1626,7 @@ 'context': , 'entity_id': 'sensor.henk_light_sleep', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10440', }) @@ -1646,6 +1676,7 @@ 'context': , 'entity_id': 'sensor.henk_maximum_heart_rate', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '120', }) @@ -1695,6 +1726,7 @@ 'context': , 'entity_id': 'sensor.henk_maximum_respiratory_rate', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '20', }) @@ -1744,6 +1776,7 @@ 'context': , 'entity_id': 'sensor.henk_minimum_heart_rate', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '70', }) @@ -1793,6 +1826,7 @@ 'context': , 'entity_id': 'sensor.henk_minimum_respiratory_rate', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10', }) @@ -1847,6 +1881,7 @@ 'context': , 'entity_id': 'sensor.henk_moderate_activity_today', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '24.8', }) @@ -1900,6 +1935,7 @@ 'context': , 'entity_id': 'sensor.henk_muscle_mass', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '50', }) @@ -1950,6 +1986,7 @@ 'context': , 'entity_id': 'sensor.henk_pause_during_last_workout', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.0', }) @@ -2000,6 +2037,7 @@ 'context': , 'entity_id': 'sensor.henk_pulse_wave_velocity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }) @@ -2050,6 +2088,7 @@ 'context': , 'entity_id': 'sensor.henk_rem_sleep', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2400', }) @@ -2100,6 +2139,7 @@ 'context': , 'entity_id': 'sensor.henk_skin_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '20', }) @@ -2153,6 +2193,7 @@ 'context': , 'entity_id': 'sensor.henk_sleep_goal', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '8.000', }) @@ -2202,6 +2243,7 @@ 'context': , 'entity_id': 'sensor.henk_sleep_score', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '37', }) @@ -2250,6 +2292,7 @@ 'context': , 'entity_id': 'sensor.henk_snoring', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1080', }) @@ -2298,6 +2341,7 @@ 'context': , 'entity_id': 'sensor.henk_snoring_episode_count', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '18', }) @@ -2352,6 +2396,7 @@ 'context': , 'entity_id': 'sensor.henk_soft_activity_today', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '25.3', }) @@ -2401,6 +2446,7 @@ 'context': , 'entity_id': 'sensor.henk_spo2', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0.95', }) @@ -2450,6 +2496,7 @@ 'context': , 'entity_id': 'sensor.henk_step_goal', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '10000', }) @@ -2500,6 +2547,7 @@ 'context': , 'entity_id': 'sensor.henk_steps_today', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1155', }) @@ -2549,6 +2597,7 @@ 'context': , 'entity_id': 'sensor.henk_systolic_blood_pressure', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }) @@ -2599,6 +2648,7 @@ 'context': , 'entity_id': 'sensor.henk_temperature', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '40', }) @@ -2649,6 +2699,7 @@ 'context': , 'entity_id': 'sensor.henk_time_to_sleep', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '540', }) @@ -2699,6 +2750,7 @@ 'context': , 'entity_id': 'sensor.henk_time_to_wakeup', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1140', }) @@ -2752,6 +2804,7 @@ 'context': , 'entity_id': 'sensor.henk_total_calories_burnt_today', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2444.149', }) @@ -2797,6 +2850,7 @@ 'context': , 'entity_id': 'sensor.henk_vascular_age', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }) @@ -2842,6 +2896,7 @@ 'context': , 'entity_id': 'sensor.henk_visceral_fat_index', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '102', }) @@ -2891,6 +2946,7 @@ 'context': , 'entity_id': 'sensor.henk_vo2_max', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '100', }) @@ -2940,6 +2996,7 @@ 'context': , 'entity_id': 'sensor.henk_wakeup_count', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '1', }) @@ -2990,6 +3047,7 @@ 'context': , 'entity_id': 'sensor.henk_wakeup_time', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '3060', }) @@ -3043,6 +3101,7 @@ 'context': , 'entity_id': 'sensor.henk_weight', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '70', }) @@ -3093,6 +3152,7 @@ 'context': , 'entity_id': 'sensor.henk_weight_goal', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '70.5', }) diff --git a/tests/components/wled/snapshots/test_binary_sensor.ambr b/tests/components/wled/snapshots/test_binary_sensor.ambr index a2d3176cec7..b9a083336d2 100644 --- a/tests/components/wled/snapshots/test_binary_sensor.ambr +++ b/tests/components/wled/snapshots/test_binary_sensor.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'binary_sensor.wled_rgb_light_firmware', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) diff --git a/tests/components/wled/snapshots/test_button.ambr b/tests/components/wled/snapshots/test_button.ambr index e004db77e25..b489bcc0a71 100644 --- a/tests/components/wled/snapshots/test_button.ambr +++ b/tests/components/wled/snapshots/test_button.ambr @@ -8,6 +8,7 @@ 'context': , 'entity_id': 'button.wled_rgb_light_restart', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unknown', }) diff --git a/tests/components/wled/snapshots/test_number.ambr b/tests/components/wled/snapshots/test_number.ambr index 97555c7e850..c3440108148 100644 --- a/tests/components/wled/snapshots/test_number.ambr +++ b/tests/components/wled/snapshots/test_number.ambr @@ -11,6 +11,7 @@ 'context': , 'entity_id': 'number.wled_rgb_light_segment_1_intensity', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '64', }) @@ -99,6 +100,7 @@ 'context': , 'entity_id': 'number.wled_rgb_light_segment_1_speed', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '16', }) diff --git a/tests/components/wled/snapshots/test_select.ambr b/tests/components/wled/snapshots/test_select.ambr index 9881b8f0a00..6d64ec43658 100644 --- a/tests/components/wled/snapshots/test_select.ambr +++ b/tests/components/wled/snapshots/test_select.ambr @@ -12,6 +12,7 @@ 'context': , 'entity_id': 'select.wled_rgb_light_live_override', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '0', }) @@ -149,6 +150,7 @@ 'context': , 'entity_id': 'select.wled_rgb_light_segment_1_color_palette', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Random Cycle', }) @@ -285,6 +287,7 @@ 'context': , 'entity_id': 'select.wled_rgbw_light_playlist', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Playlist 1', }) @@ -373,6 +376,7 @@ 'context': , 'entity_id': 'select.wled_rgbw_light_preset', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'Preset 1', }) diff --git a/tests/components/wled/snapshots/test_switch.ambr b/tests/components/wled/snapshots/test_switch.ambr index fa2e004f994..da69e686f07 100644 --- a/tests/components/wled/snapshots/test_switch.ambr +++ b/tests/components/wled/snapshots/test_switch.ambr @@ -10,6 +10,7 @@ 'context': , 'entity_id': 'switch.wled_rgb_light_nightlight', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -89,6 +90,7 @@ 'context': , 'entity_id': 'switch.wled_rgb_light_reverse', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) @@ -169,6 +171,7 @@ 'context': , 'entity_id': 'switch.wled_rgb_light_sync_receive', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'on', }) @@ -249,6 +252,7 @@ 'context': , 'entity_id': 'switch.wled_rgb_light_sync_send', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'off', }) diff --git a/tests/components/youtube/snapshots/test_sensor.ambr b/tests/components/youtube/snapshots/test_sensor.ambr index bea70279dd3..cddfa6f6a3d 100644 --- a/tests/components/youtube/snapshots/test_sensor.ambr +++ b/tests/components/youtube/snapshots/test_sensor.ambr @@ -10,6 +10,7 @@ 'context': , 'entity_id': 'sensor.google_for_developers_latest_upload', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': "What's new in Google Home in less than 1 minute", }) @@ -24,6 +25,7 @@ 'context': , 'entity_id': 'sensor.google_for_developers_subscribers', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2290000', }) @@ -36,6 +38,7 @@ 'context': , 'entity_id': 'sensor.google_for_developers_latest_upload', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': 'unavailable', }) @@ -50,6 +53,7 @@ 'context': , 'entity_id': 'sensor.google_for_developers_subscribers', 'last_changed': , + 'last_reported': , 'last_updated': , 'state': '2290000', }) diff --git a/tests/syrupy.py b/tests/syrupy.py index d489724a940..e5bbf017bb3 100644 --- a/tests/syrupy.py +++ b/tests/syrupy.py @@ -198,6 +198,7 @@ class HomeAssistantSnapshotSerializer(AmberDataSerializer): | { "context": ANY, "last_changed": ANY, + "last_reported": ANY, "last_updated": ANY, } ) diff --git a/tests/test_core.py b/tests/test_core.py index 5b385700b00..b60e6b832ce 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -34,6 +34,7 @@ from homeassistant.const import ( EVENT_SERVICE_REGISTERED, EVENT_SERVICE_REMOVED, EVENT_STATE_CHANGED, + EVENT_STATE_REPORTED, MATCH_ALL, __version__, ) @@ -930,8 +931,9 @@ def test_state_as_dict() -> None: "happy.happy", "on", {"pig": "dog"}, - last_updated=last_time, last_changed=last_time, + last_reported=last_time, + last_updated=last_time, ) expected = { "context": { @@ -942,6 +944,7 @@ def test_state_as_dict() -> None: "entity_id": "happy.happy", "attributes": {"pig": "dog"}, "last_changed": last_time.isoformat(), + "last_reported": last_time.isoformat(), "last_updated": last_time.isoformat(), "state": "on", } @@ -962,13 +965,15 @@ def test_state_as_dict_json() -> None: "happy.happy", "on", {"pig": "dog"}, - last_updated=last_time, - last_changed=last_time, context=ha.Context(id="01H0D6K3RFJAYAV2093ZW30PCW"), + last_changed=last_time, + last_reported=last_time, + last_updated=last_time, ) expected = ( b'{"entity_id":"happy.happy","state":"on","attributes":{"pig":"dog"},' - b'"last_changed":"1984-12-08T12:00:00","last_updated":"1984-12-08T12:00:00",' + b'"last_changed":"1984-12-08T12:00:00","last_reported":"1984-12-08T12:00:00",' + b'"last_updated":"1984-12-08T12:00:00",' b'"context":{"id":"01H0D6K3RFJAYAV2093ZW30PCW","parent_id":null,"user_id":null}}' ) as_dict_json_1 = state.as_dict_json @@ -986,9 +991,10 @@ def test_state_json_fragment() -> None: "happy.happy", "on", {"pig": "dog"}, - last_updated=last_time, - last_changed=last_time, context=ha.Context(id="01H0D6K3RFJAYAV2093ZW30PCW"), + last_changed=last_time, + last_reported=last_time, + last_updated=last_time, ) for _ in range(2) ) @@ -1386,7 +1392,7 @@ def test_state_repr() -> None: "happy.happy", "on", {"brightness": 144}, - datetime(1984, 12, 8, 12, 0, 0), + last_changed=datetime(1984, 12, 8, 12, 0, 0), ) ) == "" @@ -2775,11 +2781,14 @@ def test_state_timestamps() -> None: "on", {"brightness": 100}, last_changed=now, + last_reported=now, last_updated=now, context=ha.Context(id="1234"), ) assert state.last_changed_timestamp == now.timestamp() assert state.last_changed_timestamp == now.timestamp() + assert state.last_reported_timestamp == now.timestamp() + assert state.last_reported_timestamp == now.timestamp() assert state.last_updated_timestamp == now.timestamp() assert state.last_updated_timestamp == now.timestamp() @@ -3220,3 +3229,30 @@ async def test_eventbus_lazy_object_creation(hass: HomeAssistant) -> None: assert len(calls) == 1 unsub() + + +async def test_statemachine_report_state(hass: HomeAssistant) -> None: + """Test report state event.""" + hass.states.async_set("light.bowl", "on", {}) + state_changed_events = async_capture_events(hass, EVENT_STATE_CHANGED) + state_reported_events = async_capture_events(hass, EVENT_STATE_REPORTED) + + hass.states.async_set("light.bowl", "on") + await hass.async_block_till_done() + assert len(state_changed_events) == 0 + assert len(state_reported_events) == 1 + + hass.states.async_set("light.bowl", "on", None, True) + await hass.async_block_till_done() + assert len(state_changed_events) == 1 + assert len(state_reported_events) == 2 + + hass.states.async_set("light.bowl", "off") + await hass.async_block_till_done() + assert len(state_changed_events) == 2 + assert len(state_reported_events) == 3 + + hass.states.async_remove("light.bowl") + await hass.async_block_till_done() + assert len(state_changed_events) == 3 + assert len(state_reported_events) == 4