mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Remove timedate manipulation from Neato attributes (#48150)
* Remove timedate manipulation to get timezone back * Updated camera to new format
This commit is contained in:
parent
a019f076c0
commit
2b24f8b735
@ -102,7 +102,7 @@ class NeatoCleaningMap(Camera):
|
||||
|
||||
self._image = image.read()
|
||||
self._image_url = image_url
|
||||
self._generated_at = (map_data["generated_at"].strip("Z")).replace("T", " ")
|
||||
self._generated_at = map_data["generated_at"]
|
||||
self._available = True
|
||||
|
||||
@property
|
||||
|
@ -202,8 +202,8 @@ class NeatoConnectedVacuum(StateVacuumEntity):
|
||||
return
|
||||
|
||||
mapdata = self._mapdata[self._robot_serial]["maps"][0]
|
||||
self._clean_time_start = (mapdata["start_at"].strip("Z")).replace("T", " ")
|
||||
self._clean_time_stop = (mapdata["end_at"].strip("Z")).replace("T", " ")
|
||||
self._clean_time_start = mapdata["start_at"]
|
||||
self._clean_time_stop = mapdata["end_at"]
|
||||
self._clean_area = mapdata["cleaned_area"]
|
||||
self._clean_susp_charge_count = mapdata["suspended_cleaning_charging_count"]
|
||||
self._clean_susp_time = mapdata["time_in_suspended_cleaning"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user