Files
core/tests/components/iotawatt/__init__.py
T

36 lines
664 B
Python

"""Tests for the IoTaWatt integration."""
from iotawattpy.sensor import Sensor
INPUT_SENSOR = Sensor(
channel="1",
base_name="My Sensor",
suffix=None,
io_type="Input",
unit="Watts",
value=23,
begin="",
mac_addr="mock-mac",
)
OUTPUT_SENSOR = Sensor(
channel="N/A",
base_name="My WattHour Sensor",
suffix=None,
io_type="Output",
unit="WattHours",
value=243,
begin="",
mac_addr="mock-mac",
fromStart=True,
)
VAR_OUTPUT_SENSOR = Sensor(
channel="N/A",
base_name="My VAR Sensor",
suffix=None,
io_type="Output",
unit="VAR",
value=500,
begin="",
mac_addr="mock-mac",
)