core/homeassistant/components/roomba
Krzysztof Dąbrowski 8324360045
Add Roomba last mission sensor (#123048)
* Roomba: add last mission sensor

* Set sensor as unavailable if last mission timestamp is 0

Previously, if the `mssnStrtTm` was 0, the function would return a 1970-01-01 (Unix epoch start date). With this change, the function will return None if the timestamp is 0 and the sensor will become unavailable.

* Update last_mission property to use dt_util.utc_from_timestamp
2024-09-10 17:04:25 +02:00
..
__init__.py
binary_sensor.py
braava.py
config_flow.py
const.py
icons.json
irobot_base.py
manifest.json
models.py
roomba.py
sensor.py
strings.json
vacuum.py