markgdev / home-assistant_OctopusAgile

Octopus Agile custom component for Home Assistant
Apache License 2.0
86 stars 33 forks source link

Populate services.yaml #17

Closed markgdev closed 3 years ago

markgdev commented 4 years ago

Populate services.yaml, currently it throws an error in the log as it’s not populated.

markcocker commented 3 years ago

Error in Configuration > Logs:

Logger: homeassistant.helpers.service
Source: helpers/service.py:263
First occurred: 17:36:15 (1 occurrences)
Last logged: 17:36:15
Unable to find services.yaml for the octopusagile integration 
anthonyangel commented 3 years ago

Based on https://github.com/home-assistant/core/issues/23197 we could just create an empty services.yaml file to silence this alert.

The services are set up in https://github.com/markgdev/home-assistant_OctopusAgile/blob/master/custom_components/OctopusAgile/__init__.py - but I'm not sure enough of what they all do to write accurate descriptions,

update_consumption:
  description: Get the most recent consumption data from the Octopus API

update_timers:
  description: Manually pull the pricing data for tomorrow

half_hour:
  description: ?
create-issue-branch[bot] commented 3 years ago

Branch issue-17-Populate_services_yaml created!

markgdev commented 3 years ago

I didn't realise that I never respondend to you @anthonyangel, sorry about that. I've added in the file as you said and the descriptions show up and no errors in the log as far as I can see!