Skip to content

Fix geofency requiring a configuration.yaml entry#20631

Merged
balloob merged 1 commit intodevfrom
geofency
Feb 1, 2019
Merged

Fix geofency requiring a configuration.yaml entry#20631
balloob merged 1 commit intodevfrom
geofency

Conversation

@balloob
Copy link
Copy Markdown
Member

@balloob balloob commented Jan 31, 2019

Description:

With a config entry, there can be no entry in configuration.yaml. This adds code for this case.

Reported via chat.

Fixes home-assistant/home-assistant.io#8362

CC @rohankapoorcom

@balloob balloob added this to the 0.87.0 milestone Jan 31, 2019
@ghost ghost assigned balloob Jan 31, 2019
@ghost ghost added the in progress label Jan 31, 2019
Copy link
Copy Markdown
Member

@rohankapoorcom rohankapoorcom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems easier to do:

if DOMAIN not in hass_config:
    hass.data[DOMAIN] = []
    return True

If we did that at the beginning, we'd have to make no other changes.

@balloob
Copy link
Copy Markdown
Member Author

balloob commented Feb 1, 2019

Either is fine I think, it's all so small.

@balloob balloob merged commit 57ef8c2 into dev Feb 1, 2019
@ghost ghost removed the in progress label Feb 1, 2019
@delete-merged-branch delete-merged-branch bot deleted the geofency branch February 1, 2019 22:09
@balloob balloob mentioned this pull request Feb 6, 2019
@brianharwell
Copy link
Copy Markdown

This did not fix geofency. I upgraded HA to 0.87.0 with a geofency: config entry in configuration.yaml and I still get the warning...

Received message for unregistered webhook 96f9e0e6b6683bf75f5ed5d05a31d4b03ffe18414fb100af1

rohankapoorcom pushed a commit to home-assistant/home-assistant.io that referenced this pull request Feb 15, 2019
* Remove config.yaml part

As part of PR home-assistant/core#20631 an entry in configuration.yaml is no longer necessary.

* Put mobile beacons back in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants