Giter VIP home page Giter VIP logo

Comments (5)

themistymay avatar themistymay commented on September 24, 2024

We just got our Eight Pod Pro so the account is brand new as well.

from pyeight.

mezz64 avatar mezz64 commented on September 24, 2024

@themistymay Did this correct itself once you collected some data?

from pyeight.

themistymay avatar themistymay commented on September 24, 2024

I will retry. Give me a few days as I'm currently away.

from pyeight.

themistymay avatar themistymay commented on September 24, 2024

I have confirmed this is still an issue:

2021-12-16 09:39:09 ERROR (MainThread) [pyeight.eight] Error fetching Eight data: 403
2021-12-16 09:39:09 ERROR (MainThread) [pyeight.user] Unable to fetch eight intervals data.
2021-12-16 09:39:09 ERROR (MainThread) [pyeight.eight] Error fetching Eight data: 403
2021-12-16 09:39:09 ERROR (MainThread) [pyeight.user] Unable to fetch eight trend data.
2021-12-16 09:34:09 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up eight_sleep platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 257, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 613, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 748, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 505, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 538, in _async_write_ha_state
    state = self._stringify_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 511, in _stringify_state
    if (state := self.state) is None:
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 363, in state
    value = self.native_value
  File "/usr/src/homeassistant/homeassistant/components/eight_sleep/sensor.py", line 173, in native_value
    return self._usrobj.current_sleep_score
  File "/usr/local/lib/python3.9/site-packages/pyeight/user.py", line 237, in current_sleep_score
    score = self.intervals[0]['score']
TypeError: 'NoneType' object is not subscriptable

from pyeight.

mezz64 avatar mezz64 commented on September 24, 2024

Very late reply, but I noticed in your last snippet you are getting a 403 forbidden error. That usually only happens if the login info is incorrect. Please verify you have it entered correctly in your config. Others have had problems with certain special characters in the past.

from pyeight.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.