Beispiel #1
0
def device_fixture(location):
    """Fixture representing devices loaded."""
    item = Mock(DeviceEntity)
    item.device_id = "743de49f-036f-4e9c-839a-2f89d57607db"
    item.name = "GE In-Wall Smart Dimmer"
    item.label = "Front Porch Lights"
    item.location_id = location.location_id
    item.capabilities = [
        "switch", "switchLevel", "refresh", "indicator", "sensor", "actuator",
        "healthCheck", "light"
    ]
    item.components = {"main": item.capabilities}
    item.status = Mock(DeviceStatus)
    return item