Skip to content

Commit

Permalink
restructure and improve gateway subdevices (#700)
Browse files Browse the repository at this point in the history
* restructure and improve gateway subdevices

* Update gateway.py

* fix cli

* black formatting

* filter out gateway

* better error handeling

* common GatewayDevice class for __init__

* remove duplicate "gateway" from method name

* use device_type instead of device_name for mapping

* add comments

* use DeviceType.Gateway

Co-authored-by: Teemu R. <tpr@iki.fi>

* Update gateway.py

* improve discovered info

* fix formatting

* better use of dev_info

* final black formatting

* process revieuw

* generilize properties of subdevices

* Subdevice schould not derive from Device

* simplify dataclass props for subdevices

* optimization

* remove empty checks and futher simplify dataclass

* Update gateway.py

* add back SensorHT

* add back Empty response

* black formatting

* add missing docstrings

* fix except

* fix black

* Update pyproject.toml

* Update pyproject.toml

* fix dataclasses

* replace dataclasses by attr

* add get_local_status command

* remove local.status again

Co-authored-by: Teemu R. <tpr@iki.fi>
  • Loading branch information
starkillerOG and rytilahti authored May 27, 2020
1 parent cbb3d1d commit 612996f
Showing 1 changed file with 461 additions and 156 deletions.
Loading

0 comments on commit 612996f

Please sign in to comment.