b0mbays / continuously_casting_dashboards

HACS Integration for continuously casting a Home Assistant dashboard to your Google Chromecast Displays
MIT License
228 stars 11 forks source link

Error dusting setup latest version #79

Open Tokn59 opened 1 month ago

Tokn59 commented 1 month ago

Hi, since installing the update yesterday I get the following error :

Logger: homeassistant.setup Source: setup.py:416 First occurred: 08:25:31 (1 occurrences) Last logged: 08:25:31

Error during setup of component continuously_casting_dashboards Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component result = await task ^^^^^^^^^^ File "/config/custom_components/continuously_casting_dashboards/init.py", line 20, in async_setup caster = ContinuouslyCastingDashboards(hass, conf) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/continuously_casting_dashboards/dashboard_caster.py", line 34, in init device_info.get("start_time", global_start_time), "%H:%M" ^^^^^^^^^^^^^^^ AttributeError: 'str' object has no attribute 'get'

My config (was working fine in prvious build) :

'#----------------------------------------------------------------------------------------------------- continuously_casting_dashboards: logging_level: debug #Required: Set the logging level - debug/info/warning (default is 'warning' - try 'debug' for debugging) cast_delay: 15 start_time: "00:01" #Required: Start time of the casting window (format: "HH:MM") end_time: "23:59" #Required: End time of the casting window (format: "HH:MM") and must be after "00:00"

volume: 5

devices:

"Nesthub Kitchen":

dashboard_url: "http://192.168.1.15:8443/tablet-2/default_view?kiosk"

volume:

start_time: "07:01" #Required: Start time of the casting window (format: "HH:MM")

end_time: "22:30" #Required: End time of the casting window (format: "HH:MM") and must be after "00:00"

devices: "Kitchen Display":

- entity_id: input_boolean.nesthub_alarm

  #        to_state: "on"
  #        dashboard_url: "http://192.168.1.15:8443/dashboard-cameras/default_view?kiosk"
  #        volume: 5
  #      - entity_id: input_boolean.nesthub_alarm
  #        to_state: "off"
  dashboard_url: "http://192.168.1.15:8443/dashboard-nesthub/default_view?kiosk"
  volume: 1
"Desk Display":
  #      - entity_id: input_boolean.nesthub_alarm
  #        to_state: "on"
  #      dashboard_url: "http://192.168.1.15:8443/dashboard-cameras/default_view?kiosk"
  dashboard_url: "http://192.168.1.15:8443/dashboard-nesthub/default_view?kiosk"
  #        volume: 5
  #      - entity_id: input_boolean.nesthub_alarm
  #        to_state: "off"
  #        dashboard_url: "http://192.168.1.15:8443/dashboard-cameras/default_view?kiosk""
  volume: 1

-----------------------------------------------------------------------------------------------------

'