-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
SPC: Fix recorder/history graph #17220 8000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Nice! Will include it in 0.80 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't want to be able to finish set up of the platforms from platform config sections.
@@ -27,13 +26,10 @@ def _get_device_class(zone_type): | |||
async def async_setup_platform(hass, config, async_add_entities, | |||
discovery_info=None): | |||
"""Set up the SPC binary sensor.""" | |||
if (discovery_info is None or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should still guard from no discovery_info.
@@ -66,13 +63,11 @@ | |||
|
|||
# add sensor devices for each zone (typically motion/fire/door sensors) | |||
hass.async_create_task(discovery.async_load_platform( | |||
hass, 'binary_sensor', DOMAIN, | |||
{ATTR_DISCOVER_DEVICES: spc.zones.values()}, config)) | |||
hass, 'binary_sensor', DOMAIN)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Send an empty dict as discovery_info.
ugh was not paying attention . will put in a quick fix Martin |
Description:
Due to problems with non-serializable data passed to
async_setup_platform
the recorder component didn't want to play causing UI history graphs not to show for any entity when the SPC component was loaded.Two tests no longer considered relevant have been removed.
Related issue (if applicable): fixes #16984
Checklist:
tox
. Your PR cannot be merged unless tests pass