tonyldo / lock.ttlock Goto Github PK
View Code? Open in Web Editor NEWCustom Component to integrate ttlock api on Home Assistant
License: MIT License
Custom Component to integrate ttlock api on Home Assistant
License: MIT License
Log Details (WARNING)
Logger: homeassistant.components.http
Source: components/http/__init__.py:180
Integration: HTTP (documentation, issues)
First occurred: 14:14:03 (1 occurrences)
Last logged: 14:14:03
Detected use of deprecated `base_url` property, use `homeassistant.helpers.network.get_url` method instead. Please report issue to the custom component author for ttlock using this method at custom_components/ttlock/__init__.py, line 140: self.redirect_url = f"{hass.config.api.base_url}/"
Hi There, wondering if you can help me understand what the issue is here
config eg:
ttlock:
client_id: "757575757575757"
client_secret: "757575757575757"
access_token: "757575757575757"
refresh_token: "757575757575757"
Debug - its referencing a folder in config that does not exist (ttlock)
2020-07-26 00:42:22 INFO (MainThread) [custom_components.blueprint]
-------------------------------------------------------------------
ttlock
Version: 0.0.1
This is a custom integration
If you have any issues with this you need to open an issue here:
https://github.com/tonyldo/lock.ttlock/issues
-------------------------------------------------------------------
2020-07-26 00:42:22 INFO (MainThread) [custom_components.blueprint] Token File (/config/custom_components/ttlock/token.json) not exist.
2020-07-26 00:42:22 INFO (MainThread) [custom_components.blueprint] Generating a new Access token.
2020-07-26 00:42:28 INFO (MainThread) [homeassistant.setup] Setup of domain ttlock took 6.1 seconds.
2020-07-26 00:42:28 ERROR (MainThread) [homeassistant.setup] Setup failed for ttlock: Integration failed to initialize.
Received the following error on initial start of TTLock.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 248, in _async_setup_component
result = await task
File "/config/custom_components/ttlock/init.py", line 94, in async_setup
hass.data[DOMAIN] = TTlock(hass, config)
File "/config/custom_components/ttlock/init.py", line 140, in init
self.redirect_url = f"{hass.config.api.base_url}/"
AttributeError: 'ApiConfig' object has no attribute 'base_url'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.