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

Problem with View States section in Getting Started : 'HassDatabase' object has no attribute 'fetch_all_data' #137

Closed
dmshimself opened this issue Feb 18, 2021 · 6 comments

Comments

@dmshimself
Copy link

I have a problem using the Home Assistant addon referred to here: https://github.com/hassio-addons/addon-jupyterlab/issues/241 which I was asked to report here.

When the home-assistant/GETTING_STARTED notebook is run, the first sections run fine, but the section:

db.fetch_all_data()

returns an error:

AttributeError Traceback (most recent call last) in
AttributeError: 'HassDatabase' object has no attribute 'fetch_all_data'

@robmarkcole
Copy link
Owner

Can you fix the link to the issue?

It should be calling fetch_all_sensor_data

@dmshimself
Copy link
Author

Whoops:

hassio-addons/addon-jupyterlab#241

I manually changed the fetch_all_data to fetch_all_sensor_data and that part went through very nicely. Many thanks Rob.

Would you have any comments on the next section which produces an assertion error?

assert 'binary_sensor' and 'sensor' in db.domains

AttributeError Traceback (most recent call last)
in
----> 1 assert 'binary_sensor' and 'sensor' in db.domains

AttributeError: 'HassDatabase' object has no attribute 'domains'

@robmarkcole
Copy link
Owner

My guess is you have updated the detective dependency, but are still using a version of the getting started notebook from and old verison of detective. Please use Getting started with detective.ipynb from this repo

@dmshimself
Copy link
Author

Thanks Rob - I'll pass that on to the developer of the Home Assistant Add on.

@robmarkcole
Copy link
Owner

@robmarkcole
Copy link
Owner

PR merged, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants