Skip to content

Commit cde55e8

Browse files
committed
Further simplifications
1 parent 21e5f17 commit cde55e8

File tree

1 file changed

+9
-27
lines changed

1 file changed

+9
-27
lines changed

plugwise/devices.py

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -391,39 +391,28 @@ class PlugwiseData:
391391
Overview of existing options:
392392
393393
- Gateway Adam
394-
- Climate device
395-
- OnOff
396-
- Opentherm
394+
- Climate device: OnOff or Opentherm
397395
- Zones (1 to many) with thermostatic and energy sensors summary, with thermostat setpoint- and mode-, preset- & schedule-setter
398-
- Location (Home) with weather data - only outdoor_temp used
399396
- Single devices (appliances) assigned to a Zone, or not
400397
- Anna (wired thermostat)
401-
- Emma Pro (ZigBee thermostat)
402398
- Emma Pro wired (wired thermostat)
403399
- (Emma Essential (wired thermostat))
400+
- Emma Pro (ZigBee thermostat)
404401
- Lisa (ZigBee thermostat)
405402
- Jip (ZigBee thermostat)
406403
- Tom/Floor (ZigBee valve/thermostat)
407-
- Plug (energy switch/meter)
408-
- Aqara Plug (energy switch/meter)
409-
- Noname switch (energy switch)
404+
- Plug (energy switch/meter) / Aqara Plug (energy switch/meter) / Noname switch (energy switch)
410405
411406
- Gateway SmileT (Anna, Anna P1)
412-
- Climate device
413-
- OnOff
414-
- OpenTherm
407+
- Climate device: OnOff or OpenTherm
415408
- (Zone (Living room) with with thermostatic and energy sensors summary, with thermostat setpoint- and mode-, preset- & schedule-setter)
416-
- Location (Home) with weather data - only outdoor_temp used
417409
- Single devices (appliances)
418410
- Anna (wired thermostat)
419411
- P1-DSMR device (Anna P1)
420412
421413
- Gateway SmileT (Anna) legacy
422-
- Climate device
423-
- OnOff
424-
- Opentherm
414+
- Climate device: OnOff or Opentherm
425415
- Anna (wired thermostat)
426-
- Location (Home) with weather data (optional?) - only outdoor_temp used
427416
428417
- Gateway P1
429418
- P1-DSMR device (in Home location)
@@ -438,25 +427,18 @@ class PlugwiseData:
438427

439428
adam: AdamGateway
440429
smile_t: SmileTGateway
441-
smile_t_legacy: SmileTLegacyGateway
442-
smile_t_p1: SmileTGateway
443430
smile_p1: SmileP1Gateway
444-
smile_p1_legacy: SmileP1LegacyGateway
445431
stretch: StretchGateway
446432
onoff: OnOff
447433
opentherm: OpenTherm
448434
zones: list[Zone]
449435
weather: Weather
450436
anna: Anna
451-
anna_legacy: Anna
452437
anna_adam: AnnaAdam
453438
lisa: EmmaJipLisaTom
454439
jip: EmmaJipLisaTom
455440
tom_floor: EmmaJipLisaTom
456441
plug: Plug
457-
plug_legacy: Plug
458-
aqara_plug: Plug
459-
misc_plug: Plug
460442
p1_dsmr: SmartEnergyMeter
461443

462444
def update_from_dict(self, data: dict[str, Any]) -> PlugwiseData:
@@ -489,9 +471,9 @@ def update_from_dict(self, data: dict[str, Any]) -> PlugwiseData:
489471
self.tom_floor.update_from_dict(data["tom_floor"])
490472
if "plug" in data:
491473
self.plug.update_from_dict(data["plug"])
492-
if "aqara_plug" in data:
493-
self.opentherm.update_from_dict(data["aqara_plug"])
494-
if "misc_plug" in data:
495-
self.misc_plug.update_from_dict(data["misc_plug"])
474+
# if "aqara_plug" in data:
475+
# self.opentherm.update_from_dict(data["aqara_plug"])
476+
# if "misc_plug" in data:
477+
# self.misc_plug.update_from_dict(data["misc_plug"])
496478
if "p1_dsmr" in data:
497479
self.p1_dsmr.update_from_dict(data["p1_dsmr"])

0 commit comments

Comments
 (0)