JayBlackedOut / hass-nhlapi

NHL Stats API Integration Into Home Assistant
69 stars 18 forks source link

Integration not loading after 2022.9.0 Update #51

Closed jeff720 closed 2 years ago

jeff720 commented 2 years ago

Describe the bug After updating to the latest 2022.9.0 build, HA throws an error about integration and the configuration validation fails with the following error: Platform error sensor.nhl_api - Requirements for nhl_api not found: ['pynhl==0.2.2'].

I have to comment out the configuration.yaml entry for it pass.

Home Assistant Information

Configuration

# NHL API - Track Devils Games
  - platform: nhl_api
    team_id: 1.

Log

2022-09-07 19:51:49.645 ERROR (SyncWorker_0) [homeassistant.util.package] Unable to install package pynhl==0.2.2: ERROR: Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 167, in exc_logging_wrapper
    status = run_func(*args)
  File "/usr/local/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
    return func(self, options, args)
  File "/usr/local/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 307, in run
    reqs = self.get_requirements(args, options, finder, session)
  File "/usr/local/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 381, in get_requirements
    for parsed_req in parse_requirements(
  File "/usr/local/lib/python3.10/site-packages/pip/_internal/req/req_file.py", line 145, in parse_requirements
    for parsed_line in parser.parse(filename, constraint):
  File "/usr/local/lib/python3.10/site-packages/pip/_internal/req/req_file.py", line 328, in parse
    yield from self._parse_and_recurse(filename, constraint)
  File "/usr/local/lib/python3.10/site-packages/pip/_internal/req/req_file.py", line 333, in _parse_and_recurse
    for line in self._parse_file(filename, constraint):
  File "/usr/local/lib/python3.10/site-packages/pip/_internal/req/req_file.py", line 364, in _parse_file
    _, content = get_file_content(filename, self._session)
  File "/usr/local/lib/python3.10/site-packages/pip/_internal/req/req_file.py", line 537, in get_file_content
    content = auto_decode(f.read())
  File "/usr/local/lib/python3.10/site-packages/pip/_internal/utils/encoding.py", line 34, in auto_decode
    return data.decode(
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 8-9: invalid continuation byte

Any help is appreciated. Thanks in advance!

jeff720 commented 2 years ago

updating to 2022.9.2 and everything worked again.