Skip to content

Commit

Permalink
add optional disabled sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
marcolivierarsenault committed Dec 6, 2023
1 parent da51770 commit ccdc7eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion custom_components/moonraker/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,6 @@ async def async_setup_machine_update_sensors(coordinator, entry, async_add_entit
for version_info in machine_status["version_info"]:
if version_info == "system":
continue

sensors.append(
MoonrakerSensorDescription(
key=f"machine_update_{version_info}",
Expand Down
2 changes: 2 additions & 0 deletions tests/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ async def test_sensors(
"sensor, value",
[
("mainsail_machine_update_system", "8 packages can be upgraded"),
("mainsail_version_crownest", "v4.0.4-6 > v4.1.1-1"),
("mainsail_version_mainsail", "v2.8.0"),
],
)
async def test_disabled_sensors(
Expand Down

0 comments on commit ccdc7eb

Please sign in to comment.