tonymyatt / homeassistant-custom-components Goto Github PK
View Code? Open in Web Editor NEWCustom components developed for Home Assistant
License: MIT License
Custom components developed for Home Assistant
License: MIT License
HI
I just discovered your custom component, but am having issues added it.
I have downloaded it to my custom_componet folder and rebooted, I then try to add it as an intergration, however when I put in the lat/long it fails
In the log file it shows the following error
Traceback (most recent call last):
File "/config/custom_components/aus_fuel/config_flow.py", line 64, in async_step_user
self.stations_fuel_types = await validate_input(self.hass, user_input)
File "/config/custom_components/aus_fuel/config_flow.py", line 39, in validate_input
result = await hass.async_add_executor_job(api.refresh_data)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/aus_fuel/aus_fuel_api.py", line 34, in refresh_data
self._fuel_prices = json_data["data"]
KeyError: 'data'
Not sure what i an doing wrong. I did reduce my decimal point on the lat/long to 3, but it didn't seem to help
Thank You
Copied the folder into custom components, selected the integration in home assistant and put in latitude and longitude, occasionally get to second screen and have tried both options (station and fuel type) but no further configuration is possible? Am I missing something? Is there meant to be another screen? No sensor, no state, no attributes.
You can get the data from https://fuelpricesqld.com.au/
api access as a "data consumer"
Takes about 24hrs for them to send you the api access and api docs
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.