mirror of
https://github.com/home-assistant/core.git
synced 2026-09-28 02:18:10 -04:00
Moves diagnostic information from attributes to diagnostic in Utility Meter (#118637)
* move diag information from attributes to diagnostic * remove constant attributes --------- Co-authored-by: G Johansson <goran.johansson@shiftit.se>
This commit is contained in:
co-authored by
G Johansson
parent
dac661831e
commit
8cf1890772
@@ -29,36 +29,36 @@
|
||||
}),
|
||||
'tariff_sensors': list([
|
||||
dict({
|
||||
'cron': '0 0 1 * *',
|
||||
'entity_id': 'sensor.energy_bill_tariff0',
|
||||
'extra_attributes': dict({
|
||||
'cron pattern': '0 0 1 * *',
|
||||
'last_period': '0',
|
||||
'last_reset': '2024-04-05T00:00:00+00:00',
|
||||
'last_valid_state': 'None',
|
||||
'meter_period': 'monthly',
|
||||
'next_reset': '2024-05-01T00:00:00-07:00',
|
||||
'source': 'sensor.input1',
|
||||
'status': 'collecting',
|
||||
'tariff': 'tariff0',
|
||||
}),
|
||||
'last_sensor_data': None,
|
||||
'name': 'Energy Bill tariff0',
|
||||
'period': 'monthly',
|
||||
'source': 'sensor.input1',
|
||||
}),
|
||||
dict({
|
||||
'cron': '0 0 1 * *',
|
||||
'entity_id': 'sensor.energy_bill_tariff1',
|
||||
'extra_attributes': dict({
|
||||
'cron pattern': '0 0 1 * *',
|
||||
'last_period': '0',
|
||||
'last_reset': '2024-04-05T00:00:00+00:00',
|
||||
'last_valid_state': 'None',
|
||||
'meter_period': 'monthly',
|
||||
'next_reset': '2024-05-01T00:00:00-07:00',
|
||||
'source': 'sensor.input1',
|
||||
'status': 'paused',
|
||||
'tariff': 'tariff1',
|
||||
}),
|
||||
'last_sensor_data': None,
|
||||
'name': 'Energy Bill tariff1',
|
||||
'period': 'monthly',
|
||||
'source': 'sensor.input1',
|
||||
}),
|
||||
]),
|
||||
})
|
||||
|
||||
@@ -332,8 +332,6 @@ async def test_options(hass: HomeAssistant) -> None:
|
||||
|
||||
# Check config entry is reloaded with new options
|
||||
await hass.async_block_till_done()
|
||||
state = hass.states.get("sensor.electricity_meter")
|
||||
assert state.attributes["source"] == input_sensor2_entity_id
|
||||
|
||||
|
||||
async def test_change_device_source(
|
||||
|
||||
Reference in New Issue
Block a user