hass-core/tests/components/iotawatt/__init__.py
Greg 3bd9be2f6d
Add IoTaWatt integration (#55364)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-08-30 12:52:29 -07:00

21 lines
418 B
Python

"""Tests for the IoTaWatt integration."""
from iotawattpy.sensor import Sensor
INPUT_SENSOR = Sensor(
channel="1",
name="My Sensor",
io_type="Input",
unit="WattHours",
value="23",
begin="",
mac_addr="mock-mac",
)
OUTPUT_SENSOR = Sensor(
channel="N/A",
name="My WattHour Sensor",
io_type="Output",
unit="WattHours",
value="243",
begin="",
mac_addr="mock-mac",
)