mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 04:44:05 +02:00
Use file_date
This commit is contained in:
@@ -51,7 +51,7 @@ def get_bird_code(scientific_name):
|
|||||||
|
|
||||||
def automatic_mqtt_publish(file, detection, path):
|
def automatic_mqtt_publish(file, detection, path):
|
||||||
bird = {}
|
bird = {}
|
||||||
bird['Date'] = file.date
|
bird['Date'] = file.file_date
|
||||||
bird['Time'] = file.time
|
bird['Time'] = file.time
|
||||||
bird['ScientificName'] = detection.scientific_name.replace('_', ' ')
|
bird['ScientificName'] = detection.scientific_name.replace('_', ' ')
|
||||||
bird['CommonName'] = detection.common_name
|
bird['CommonName'] = detection.common_name
|
||||||
|
|||||||
Reference in New Issue
Block a user