Skip to content

Commit

Permalink
Merge pull request #398 from itchannel/1.60
Browse files Browse the repository at this point in the history
1.60
  • Loading branch information
itchannel authored Oct 22, 2023
2 parents 399fc2e + a2abd00 commit 6861089
Show file tree
Hide file tree
Showing 6 changed files with 511 additions and 742 deletions.
5 changes: 1 addition & 4 deletions custom_components/fordpass/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@
"coolantTemp": {"icon": "mdi:coolant-temperature", "api_key": "engineCoolantTemp" ,"state_class": "measurement", "device_class": "temperature", "measurement": "°C"},
"outsideTemp": {"icon": "mdi:thermometer", "state_class": "measurement", "device_class": "temperature", "api_key": "outsideTemperature", "measurement": "°C"},
"engineOilTemp": {"icon": "mdi:oil-temperature", "state_class": "measurement", "device_class": "temperature", "api_key": "engineOilTemp", "measurement": "°C"},
# "deepSleepInProgress": {
# "icon": "mdi:power-sleep",
# "name": "Deep Sleep Mode Active",
# },
"deepSleep": {"icon": "mdi:power-sleep", "name": "Deep Sleep Mode Active", "api_key": "commandPreclusion", "api_class": "states"},
# "firmwareUpgInProgress": {
# "icon": "mdi:one-up",
# "name": "Firmware Update In Progress",
Expand Down
2 changes: 2 additions & 0 deletions custom_components/fordpass/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def extra_state_attributes(self):
atts["gpsCoordinateMethod"] = self.coordinator.data["metrics"]["position"]["value"]["gpsCoordinateMethod"]
if "gpsDimension" in self.coordinator.data["metrics"]["position"]["value"]:
atts["gpsDimension"] = self.coordinator.data["metrics"]["position"]["value"]["gpsDimension"]
atts["compassDirection"] = self.coordinator.data.get("metrics", {}).get("compassDirection", {}).get("value", "Unknown")

return atts

@property
Expand Down
Loading

0 comments on commit 6861089

Please sign in to comment.