8000 Insteon not initialised in 0.27 release · Issue #3056 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Insteon not initialised in 0.27 release #3056

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

Closed
CBPetrovic opened this issue Aug 30, 2016 · 12 comments · Fixed by #3062
Closed

Insteon not initialised in 0.27 release #3056

CBPetrovic opened this issue Aug 30, 2016 · 12 comments · Fixed by #3062

Comments

@CBPetrovic
Copy link

Home Assistant release (hass --version):
0.27

Python release (python3 --version):
3.4

Component/platform:
Insteon

Description of problem:
Upgraded to 0.27 and now insteon is not getting initialized.

Here's a clip from the log

16-08-29 16:13:24 homeassistant.bootstrap: Error during setup of component insteon_hub
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py", line 157, in setupcomponent
result = component.setup(hass, config)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/insteon_hub.py", line 51, in setup
from insteon import Insteon
File "/home/pi/.homeassistant/deps/insteon/init.py", line 3, in
from .insteon import Insteon
File "/home/pi/.homeassistant/deps/insteon/insteon.py", line 15
endpoint=None):
^
SyntaxError: invalid syntax

Expected:

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

Traceback (if applicable):

Additional info:

@Danielhiversen
Copy link
Member

@Teagan42 Could you have a look a this one?

@Teagan42
Copy link
Contributor

Well shit - that's an issue with insteon library. We may need to pull out the insteon fan support.

@Teagan42
Copy link
Contributor

I'll see if I can get a fix into the insteon hub library - otherwise we'll revert the insteon changes.

@CBPetrovic
Copy link
Author

Teagan, Dennis,

I am not a python programmer, but I am familiar with other languages. If
you can help with why that line of code causes the syntax error, I'd be
happy to edit the file (if it's that simple) and see if the insteon hub
initializes. Tell me what to edit, again, if it's simple and localized to
the /deps directory, and I'll try it tonight.

Chris

On Tue, Aug 30, 2016 at 12:48 PM Teagan Glenn notifications@github.com
wrote:

I'll see if I can get a fix into the insteon hub library - otherwise we'll
revert the insteon changes.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#3056 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOdXcvVwnLEQjQCipXGFVkqQ8cgqWXbZks5qlF7mgaJpZM4JwtlP
.

@CBPetrovic
Copy link
Author

Oh, and I'm sorry Daniel, for calling you Dennis . . . lots of things on my
mind

On Tue, Aug 30, 2016 at 1:32 PM Christopher B. Petrovic <
cbpetrovic@gmail.com> wrote:

Teagan, Dennis,

I am not a python programmer, but I am familiar with other languages. If
you can help with why that line of code causes the syntax error, I'd be
happy to edit the file (if it's that simple) and see if the insteon hub
initializes. Tell me what to edit, again, if it's simple and localized to
the /deps directory, and I'll try it tonight.

Chris

On Tue, Aug 30, 2016 at 12:48 PM Teagan Glenn notifications@github.com
wrote:

I'll see if I can get a fix into the insteon hub library - otherwise
we'll revert the insteon changes.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#3056 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOdXcvVwnLEQjQCipXGFVkqQ8cgqWXbZks5qlF7mgaJpZM4JwtlP
.

@Teagan42
Copy link
Contributor

@CBPetrovic It needs a comma separating the arguments in the method (comma after__version__)

class Insteon(object):
    def __init__(self, username, password, client_id,
                user_agent='insteon_hub/%s' % __version__,
                endpoint=None):

@CBPetrovic
Copy link
Author

Ok, I'll give that a shot a little later and report back!

Thanks!

Chris

On Tue, Aug 30, 2016 at 1:38 PM Teagan Glenn notifications@github.com
wrote:

@CBPetrovic https://github.com/CBPetrovic It needs a comma separating
the arguments in the method (comma after__version__)

class Insteon(object):
def init(self, username, password, client_id,
user_agent='insteon_hub/%s' % version,
endpoint=None):


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#3056 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOdXct1Rk3ikqUULEDV07n7ER5wp8Tliks5qlGp7gaJpZM4JwtlP
.

@CBPetrovic
Copy link
Author

I tried :-)

@CBPetrovic
Copy link 8000
Author

Ok, the comma was added where instructed, and now this is the error:

16-08-30 14:43:40 homeassistant.bootstrap: Error during setup of component
insteon_hub
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py",
line 157, in _setup_component
result = component.setup(hass, config)
File
"/usr/local/lib/python3.4/dist-packages/homeassistant/components/insteon_hub.py",
line 51, in setup
from insteon import Insteon
File "/home/pi/.homeassistant/deps/insteon/init.py", line 3, in

from .insteon import Insteon
File "/home/pi/.homeassistant/deps/insteon/insteon.py", line 7, in

from .authorization import InsteonAuthorizer
File "/home/pi/.homeassistant/deps/insteon/authorization.py", line 6, in

from .api import InsteonAPI
File "/home/pi/.homeassistant/deps/insteon/api.py", line 21, in
class InsteonAPI(object):
File "/home/pi/.homeassistant/deps/insteon/api.py", line 94, in InsteonAPI
def unauth_post(cls, path, data, endpoint=CLOUD_API_UL):
NameError: name 'CLOUD_API_UL' is not defined

Found and fixed mispelling (missing "R" ) in file api.py

Which then results in this message:
6-08-30 14:47:46 homeassistant.bootstrap: Error during setup of component
insteon_hub
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/bootstrap.py",
line 157, in _setup_component
result = component.setup(hass, config)
File
"/usr/local/lib/python3.4/dist-packages/homeassistant/components/insteon_hub.py",
line 58, in setup
INSTEON = Insteon(username, password, api_key)
File "/home/pi/.homeassistant/deps/insteon/insteon.py", line 19, in
init
self.api = InsteonAPI(self.authorizer, client_id, user_agent, endpoint)
File "/home/pi/.homeassistant/deps/insteon/api.py", line 26, in init
self.endpoint = format_endpoint(endpoint if endpoint else CLOUD_API_URL)
NameError: name 'format_endpoint' is not defined

Now, this is beyond my skillset...

On Tue, Aug 30, 2016 at 2:10 PM Christopher B. Petrovic <
cbpetrovic@gmail.com> wrote:

Ok, I'll give that a shot a little later and report back!

Thanks!

Chris

On Tue, Aug 30, 2016 at 1:38 PM Teagan Glenn notifications@github.com
wrote:

@CBPetrovic https://github.com/CBPetrovic It needs a comma separating
the arguments in the method (comma after__version__)

class Insteon(object):
def init(self, username, password, client_id,
user_agent='insteon_hub/%s' % version,
endpoint=None):


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#3056 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOdXct1Rk3ikqUULEDV07n7ER5wp8Tliks5qlGp7gaJpZM4JwtlP
.

@Teagan42
Copy link
Contributor

@CBPetrovic Thanks for the info - I submitted a change to the insteon library back in february that apparently wasn't tested. I'm having him pull out that bit of code and will update when the insteon platform should work again.

@CBPetrovic
Copy link
Author

No problem. What is interesting is that the 0.26.2 release seemed to work
fine and if I not mistaken, was release not too long ago. Wonder why it
took so long to rear its ugly head?

On Tue, Aug 30, 2016 at 3:18 PM Teagan Glenn notifications@github.com
wrote:

@CBPetrovic https://github.com/CBPetrovic Thanks for the info - I
submitted a change to the insteon library back in february that apparently
wasn't tested. I'm having him pull out that bit of code and will update
when the insteon platform should work again.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#3056 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOdXcpjuThxSLrMd2pTbkTVTLVkN72ILks5qlIH-gaJpZM4JwtlP
.

@Teagan42
Copy link
Contributor

Because I implemented insteon fan support in 27, been sitting on it for
awhile. For now use 0.26.2. Waiting on the owner of the insteon hub library
now.

On Aug 30, 2016 1:38 PM, "CBPetrovic" notifications@github.com wrote:

No problem. What is interesting is that the 0.26.2 release seemed to work
fine and if I not mistaken, was release not too long ago. Wonder why it
took so long to rear its ugly head?

On Tue, Aug 30, 2016 at 3:18 PM Teagan Glenn notifications@github.com
wrote:

@CBPetrovic https://github.com/CBPetrovic Thanks for the info - I
submitted a change to the insteon library back in february that
apparently
wasn't tested. I'm having him pull out that bit of code and will update
when the insteon platform should work again.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/home-assistant/home-assistant/
issues/3056#issuecomment-243549145>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AOdXcpjuThxSLrMd2pTbkTVTLVkN72ILks5qlIH-gaJpZM4JwtlP>
.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#3056 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC2fZWIhy2DvbFWqH3GQMopLrDwh8trYks5qlIa4gaJpZM4JwtlP
.

@Teagan42 Teagan42 mentioned this issue Aug 31, 2016
8 tasks
@home-assistant home-assistant locked and limited conversation to collaborators Mar 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
Development

Successfully merging a pull request may close this issue.

3 participants
0