Skip to content
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

binary_sensor.workday doesn't support US states #7015

Closed
drkp opened this issue Apr 10, 2017 · 0 comments · Fixed by #7017 or #7162
Closed

binary_sensor.workday doesn't support US states #7015

drkp opened this issue Apr 10, 2017 · 0 comments · Fixed by #7017 or #7162

Comments

@drkp
Copy link
Contributor

drkp commented Apr 10, 2017

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version):

0.42.0

Python release (python3 --version):
3.5.3

Component/platform:

binary_sensor.workday

Description of problem:

workday provides country and province config options that get passed to the holidays python module. Apparently holidays does not take province and state as interchangeable, so the province option will not work for US states. Specifying a state code as province causes it to fail at startup.

Expected:

Problem-relevant configuration.yaml entries and steps to reproduce:

binary_sensor:
  - platform: workday
    country: US
    province: WA

ERROR:homeassistant.components.binary_sensor.workday:There is no province/state WA in country US

Traceback (if applicable):

Additional info:

@balloob balloob mentioned this issue Apr 11, 2017
@balloob balloob mentioned this issue Apr 21, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Jul 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant