mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Reduce the size of the Nest event media storage cache (#128855)
Reduce max media items per nest device
This commit is contained in:
parent
1f9c06e606
commit
94534f714c
@ -103,10 +103,10 @@ CONFIG_SCHEMA = vol.Schema(
|
|||||||
PLATFORMS = [Platform.CAMERA, Platform.CLIMATE, Platform.EVENT, Platform.SENSOR]
|
PLATFORMS = [Platform.CAMERA, Platform.CLIMATE, Platform.EVENT, Platform.SENSOR]
|
||||||
|
|
||||||
# Fetch media events with a disk backed cache, with a limit for each camera
|
# Fetch media events with a disk backed cache, with a limit for each camera
|
||||||
# device. The largest media items are mp4 clips at ~120kb each, and we target
|
# device. The largest media items are mp4 clips at ~450kb each, and we target
|
||||||
# ~125MB of storage per camera to try to balance a reasonable user experience
|
# ~125MB of storage per camera to try to balance a reasonable user experience
|
||||||
# for event history not not filling the disk.
|
# for event history not not filling the disk.
|
||||||
EVENT_MEDIA_CACHE_SIZE = 1024 # number of events
|
EVENT_MEDIA_CACHE_SIZE = 256 # number of events
|
||||||
|
|
||||||
THUMBNAIL_SIZE_PX = 175
|
THUMBNAIL_SIZE_PX = 175
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user