mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 04:35:11 +02:00
Reduce the size of the Nest event media storage cache (#128855)
Reduce max media items per nest device
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user