Remove timedate manipulation from Neato attributes (#48150)

* Remove timedate manipulation to get timezone back

* Updated camera to new format
This commit is contained in:
Simone Chemelli 2021-03-26 05:11:08 +01:00 committed by GitHub
parent a019f076c0
commit 2b24f8b735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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"]