-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #157 from msp1974/dev
- Loading branch information
Showing
3 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
[email protected] | ||
""" | ||
|
||
from datetime import datetime | ||
from homeassistant.const import ATTR_BATTERY_LEVEL, DEVICE_CLASS_BATTERY | ||
from homeassistant.helpers.dispatcher import async_dispatcher_connect | ||
from homeassistant.helpers.entity import Entity | ||
|
@@ -367,6 +367,7 @@ def device_state_attributes(self): | |
attrs["zigbee_channel"] = ( | ||
self.data.wiserhub.getHubData().get("Zigbee").get("NetworkChannel") | ||
) | ||
attrs["last_updated"] = datetime.now() | ||
|
||
# Network Data | ||
attrs["node_id"] = device_data.get("NodeId") | ||
|