Skip to content

Commit

Permalink
Use zone_check for saving current zone
Browse files Browse the repository at this point in the history
  • Loading branch information
ehendrix23 authored and gregoryduckworth committed Feb 17, 2022
1 parent 49c5187 commit 1e8c254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/google_geocode/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def update(self):
if zone_check == self._zone_check_current and zone_check != 'not_home':
return

self._zone_check_current = self.hass.states.get(self._origin_entity_id).state
self._zone_check_current = zone_check
lat = self._origin
current = lat
self._reset_attributes()
Expand Down

0 comments on commit 1e8c254

Please sign in to comment.