* Return PchkConnectionManager instance from init_integration
* Removed ip and port from LCN host model identifer
* Fix syntax error
* Convert init_integration to a fixture
* Rename device model for host
* Instantiate MockPchkConnectionManager with arguments from tests
* Invert logic for testing devices
* Persist nest media events to disk backed storage
Persist nest events in the media player to disk, targeting about ~500mb
per camera device as a cap. Events are stored in config/nest/event_media/.
Add a NestEventMediaStore is used for persistence. It has three main jobs:
- Read/write the key/value data that holds event data (event type, time, device, etc)
- Read/write media contents to disk
- Pick the filename for the media event based on device and event deatils
The nest event media manager library handles cache management and eviction, and by
default uses an in memory cache. Home Assistant nest integration now provides the
disk backed implementation, which is invoked by the nest library.
The store reads the event metadata key/value dict on startup, and then writes it
back with a short delay of 5 seconds to avoid unnecessary writes.
Future work planned includes:
- Possibly a small memory buffer for media objects themselves. This could make sense
when adding thumbnails to the media player grid to avoid unnecessary fetches
- Transcoding mp4 clips to animated image previews
* Address style errors
* Cleanup from CI test/pylint/etc.
* Put media for each device into its own directory
* Update comments for media store
* Decrease # of events to lower disk requirements
Target more like 1k events, to reduce disk needs.
* Address PR feedback
* Update homeassistant/components/nest/media_source.py
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* Ignore incorrect mypy in nest library
* Fix pylint errors
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* Add buttons to opt into/out of the next Ridwell pickup
* Buttons finished
* Coverage
* better name
* Move to switch
* Clean up
* Coverage
* Use correct exception
* Add a device class mapping to the consts to map from capability IDs to HA device classes.
* Use python3.8 compliant typing
* Fix return type
* Use relative import for musiccast const
* FortiOS 7.0 support
Added support for FortiOS 7.0 and retaining FortiOS 6.4 support.
Since an API was deprecated in FortiOS 7.0 and replace by a new API the integration now also support FortiOS 7.0.
It is planned to deprecate the support for FortiOS 6.4 in a year
* updated requirement to fortios
* Update device_tracker.py
indentation fix
* Update device_tracker.py
run flake8 fixes
* flake8 fixes
* Update device_tracker.py
black fixing line breaks
* Update device_tracker.py
black fixes
* Update device_tracker.py
linter fixes
* Update device_tracker.py
linter fixes
* Update device_tracker.py
linter fix
* Update device_tracker.py
removed comment that pylint does not like :-~
* Update homeassistant/components/fortios/device_tracker.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/fortios/device_tracker.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update homeassistant/components/fortios/device_tracker.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Update device_tracker.py
to resolve double guard for supported versions.
* updated fortios device tracker
Deprecated old api.
cleaned up code.
better checking with try-catch
removed unnecessary error output.
* Update device_tracker.py
lint compliance.
* Update device_tracker.py
lint updates
* Update device_tracker.py
lint updates
* Update device_tracker.py
lint updates
* Update device_tracker.py
lint updates
* Update device_tracker.py
updated to use awesomeversion component.
* Update device_tracker.py
pylint updates
* Update device_tracker.py
pylint updates
* Clean up
* Simplify
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Move value to const
* Move value to const
* remove cast
* Remove Statetype import
* Add in and output for callable
* fix mypy
* Add int to callable
* fix callable
* Only convert value
* Add datetime import
* Update homeassistant/components/solarlog/const.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>