question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot import name 'ATTR_CONNECTIONS' from 'homeassistant.const'

See original GitHub issue

Describe the bug

Logger: homeassistant.setup Source: setup.py:178 First occurred: 21:56:29 (1 occurrences) Last logged: 21:56:29

Setup failed for apple_tv: Unable to import component: cannot import name ‘ATTR_CONNECTIONS’ from ‘homeassistant.const’ (/usr/local/share/homeassistant/lib/python3.8/site-packages/homeassistant/const.py)

Error log

Logger: homeassistant.setup
Source: setup.py:178 
First occurred: 21:56:29 (1 occurrences) 
Last logged: 21:56:29

Setup failed for apple_tv: Unable to import component: cannot import name 'ATTR_CONNECTIONS' from 'homeassistant.const' (/usr/local/share/homeassistant/lib/python3.8/site-packages/homeassistant/const.py)

How to reproduce the bug?

install 1.7 on HACS

What is expected behavior?

loading, vs not loading?

Operating System

Truenas

Python

3.8

pyatv

?

Device

Doesn’t matter

Additional context

Is there a way to downgrade back to 1.6?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
postlundcommented, Oct 28, 2021

Yes, this was a boo-boo on my end. The things I pulled in from core depends on things not yet released (will be in the next core release). Please stay on 1.6.0 for now.

1reaction
Djal94commented, Oct 28, 2021

Hi, how do you rollback to 1.6? I cannot delete integration. I cannot delete my configuration. It doesn’t work

If you go into HACS and click the three dots on the Apple TV beta integration you can click “Reinstall” and choose what version to install 😃

Thxs a lot. Of course

Read more comments on GitHub >

github_iconTop Results From Across the Web

cannot import name 'Platform' from 'homeassistant.const' (/usr ...
When I try to use this integration using this configuration : climate: platform: baxi_thermostat name: My Baxi Thermostat username: xxxxx@xxxxxx.com ...
Read more >
New configuration menu, the button entity, and gorgeous area ...
Platform error media_player.skyq - cannot import name 'HTTP_OK' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py).
Read more >
2021.8.0 issues - Component error: isy994 - cannot import ...
Error: Component error: isy994 - cannot import name 'VOLT' from 'homeassistant.const' (/usr/src/homeassistant/homeassistant/const.py).
Read more >
How to use the homeassistant.const.CONF_NAME function in ...
To help you get started, we've selected a few homeassistant.const. ... name = config.get(CONF_NAME) properties = config[CONF_ZPID] params = {'zws-id': ...
Read more >
Hallo, I have the follow problem to integrate a manual alarm
Platform error alarm_control_panel.manual - No module named... ... import name 'CONF_ARMING_TIME' from ... (/usr/src/homeassistant/homeassistant/const.py)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found