Skip to content

Commit

Permalink
Change default polling interval to 30 seconds. Add system_id as attri…
Browse files Browse the repository at this point in the history
…bute to all entities.
  • Loading branch information
djtimca committed Dec 28, 2020
1 parent be1e3dd commit 299bedf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions custom_components/googlewifi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ def icon(self):
@property
def device_state_attributes(self):
"""Return the attributes."""
self._attrs["system"] = self._system_id
return self._attrs

@property
Expand Down
2 changes: 1 addition & 1 deletion custom_components/googlewifi/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
ATTR_MODEL = "model"
ATTR_SW_VERSION = "sw_version"
ATTR_CONNECTIONS = "connections"
POLLING_INTERVAL = 3
POLLING_INTERVAL = 30
REFRESH_TOKEN = "refresh_token"
DEV_MANUFACTURER = "Google"
DEV_CLIENT_MODEL = "Connected Client"
Expand Down

0 comments on commit 299bedf

Please sign in to comment.