Skip to content

Commit 6a1c360

Browse files
committed
Fix HVAC failures
1 parent cf8b4bc commit 6a1c360

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

custom_components/nissan_connect/climate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async def async_setup_entry(hass, config, async_add_entities):
2323
coordinator = hass.data[DOMAIN][DATA_COORDINATOR]
2424

2525
for vehicle in data:
26-
if Feature.TEMPERATURE in data[vehicle].features or Feature.INTERIOR_TEMP_SETTINGS in data[vehicle].features:
26+
if Feature.INTERIOR_TEMP_SETTINGS in data[vehicle].features:
2727
async_add_entities([KamereonClimate(coordinator, data[vehicle], hass)], update_before_add=True)
2828

2929

custom_components/nissan_connect/kamereon.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,9 @@ def unlock(self, srp: str, group: LockableDoorGroup=None):
11011101
return self.lock_unlock(srp, 'unlock', group)
11021102

11031103
def fetch_hvac_status(self):
1104+
if Feature.INTERIOR_TEMP_SETTINGS not in self.features and Feature.TEMPERATURE not in self.features:
1105+
return
1106+
11041107
resp = self._get(
11051108
'{}v1/cars/{}/hvac-status'.format(self.session.settings['car_adapter_base_url'], self.vin),
11061109
headers={'Content-Type': 'application/vnd.api+json'}

0 commit comments

Comments
 (0)