Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions homeassistant/components/shelly/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,6 @@ def __init__(
),
"uptime": RestSensorDescription(
key="uptime",
translation_key="last_restart",
value=lambda status, _: utcnow() - timedelta(seconds=status["uptime"]),
device_class=SensorDeviceClass.UPTIME,
entity_registry_enabled_default=False,
Comment on lines 468 to 472
Copy link

Copilot AI Apr 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the PR checklist/description to match the actual changes (either add tests covering the uptime sensor naming change or uncheck the “Tests have been added” item).

Copilot uses AI. Check for mistakes.
Expand Down Expand Up @@ -1243,7 +1242,6 @@ def __init__(
"uptime": RpcSensorDescription(
key="sys",
sub_key="uptime",
translation_key="last_restart",
device_class=SensorDeviceClass.UPTIME,
value=lambda status, _: utcnow() - timedelta(seconds=status),
entity_registry_enabled_default=False,
Expand Down
3 changes: 0 additions & 3 deletions homeassistant/components/shelly/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,6 @@
"lamp_life": {
"name": "Lamp life"
},
"last_restart": {
"name": "Last restart"
},
"left_slot_level": {
"name": "Left slot level"
},
Expand Down
Loading