From e1cf74b599bd31b9089ffb0ce4b2ca0f11093bdf Mon Sep 17 00:00:00 2001 From: Marco Zeisler Date: Wed, 2 Jun 2021 23:12:18 +0200 Subject: [PATCH] remove hardcoded init; is done in i_feed and will be fetched from entity_ident --- components/i_feed/devices/traffic_light.py | 13 +------------ components/i_feed/devices/vehicle.py | 13 +------------ 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/components/i_feed/devices/traffic_light.py b/components/i_feed/devices/traffic_light.py index 9e8208a..15b95c1 100644 --- a/components/i_feed/devices/traffic_light.py +++ b/components/i_feed/devices/traffic_light.py @@ -74,15 +74,4 @@ class TrafficLight: if __name__ == '__main__': - # TODO fetch and use data from Entity Ident - - tl1 = TrafficLight(tlid='traffic-light-1', switching_time=SWITCHING_TIME) - tl1.start() - - time.sleep(1) - tl2 = TrafficLight(tlid='traffic-light-2', switching_time=240) - tl2.start() - - time.sleep(1) - tl3 = TrafficLight(tlid='traffic-light-3', switching_time=360) - tl3.start() + ... diff --git a/components/i_feed/devices/vehicle.py b/components/i_feed/devices/vehicle.py index 811041a..1d75293 100644 --- a/components/i_feed/devices/vehicle.py +++ b/components/i_feed/devices/vehicle.py @@ -230,15 +230,4 @@ class Vehicle: if __name__ == "__main__": - # TODO fetch and use data from Entity Ident - - v1 = Vehicle(vin='SB164ABN1PE082000') - v1.start_driving() - - time.sleep(1) - v2 = Vehicle(vin='SB999ABN1PE082111') - v2.start_driving() - - time.sleep(0.5) - v3 = Vehicle(vin='SB555ABN1PE082555') - v3.start_driving() + ...