mirror of https://github.com/home-assistant/core
26 lines
475 B
Python
26 lines
475 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,
|
|
)
|