Skip to content

Commit

Permalink
Update doc and test for heater_generic
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Tremblay committed Mar 25, 2024
1 parent 8789d4e commit 645fb5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/entities/sensors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ Optional Sensors
- For every optional temperature object available in
[``temperature_sensor``, ``temperature_fan``, ``bme280``, ``htu21d``, ``lm75``]
we will create a sensor showing sensor temperature.
- For every ``heater_generic`` object we will create sensors showing the
temperature, the target and the power.


Optional Temperature Sensor
Expand Down
4 changes: 4 additions & 0 deletions tests/test_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test moonraker sensor."""

import datetime as dt
from unittest.mock import patch

Expand Down Expand Up @@ -110,6 +111,9 @@ async def test_sensor_services_update(hass, get_data):
("mainsail_slicer_print_duration_estimate", "8232.0"),
("mainsail_object_height", "62.6"),
("mainsail_speed_factor", "200.0"),
("mainsail_my_super_heater_temperature", "32.43"),
("mainsail_my_super_heater_target", "32.0"),
("mainsail_my_super_heater_power", "12"),
],
)
async def test_sensors(
Expand Down

0 comments on commit 645fb5a

Please sign in to comment.