Giter VIP home page Giter VIP logo

mealie-hacs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dmyoung9 hengedk

mealie-hacs's Issues

Error after setup

Logger: homeassistant.components.switch
Source: custom_components/mealie/switch.py:43
Integration: Kontakt (documentation, issues)
First occurred: 21.46.47 (2 occurrences)
Last logged: 21.46.47

Error adding entities for domain switch with platform mealie
Error while setting up mealie platform for switch

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 397, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 641, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 776, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 532, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 570, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 538, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 969, in state
if (is_on := self.is_on) is None:
File "/config/custom_components/mealie/switch.py", line 43, in is_on
return self.coordinator.data.get("title", "") == "foo"
AttributeError: 'NoneType' object has no attribute 'get'

-->

Version of the custom_component

Configuration

Add your logs here.

Describe the bug

after setup 3 entities is added but not avalible

Debug log


Add your logs here.
Logger: homeassistant
Source: custom_components/mealie/binary_sensor.py:33
Integration: Mealie ([documentation](https://github.com/mealie-recipes/mealie-hacs), [issues](https://github.com/mealie-recipes/mealie-hacs/issues))
First occurred: 21.47.16 (1 occurrences)
Last logged: 21.47.16
Error doing job: Task exception was never retrieved

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 151, in _handle_refresh_interval
    await self._async_refresh(log_failures=True, scheduled=True)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
    self.async_update_listeners()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 110, in async_update_listeners
    update_callback()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 339, in _handle_coordinator_update
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 532, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 570, in _async_write_ha_state
    state = self._stringify_state(available)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 538, in _stringify_state
    if (state := self.state) is None:
  File "/usr/src/homeassistant/homeassistant/components/binary_sensor/__init__.py", line 209, in state
    if (is_on := self.is_on) is None:
  File "/config/custom_components/mealie/binary_sensor.py", line 33, in is_on
    return self.coordinator.data.get("title", "") == "foo"
AttributeError: 'NoneType' object has no attribute 'get'

Home Asssistant version

Home Assistant 2022.7.5 Supervisor 2022.07.0 Operating System 8.3 Brugerfladeversion: 20220707.1 - latest

"Retrying setup: None" error no matter what is done

Version of the custom_component

Version is 0.1.2

Configuration

Done through graphic interface, deleted and readded everytime I retried due to lack of user/pass/ip:port settings in config

Describe the bug

I add the integration through HACS,
Mealie is running as an add-on to HA (on a rpi4)
Mealie is accessible through internal ip like this: http://192.168.0.183:9925
username and password works as expected.

When I add the integration I enter a username/pass (verified that these work) and the integration confirms config is saved successfully.

Then it immediately tells me
"Retrying setup: None"

And nothing happens.
Based on the info in the log I have ensured that a valid mealplan exists for today.

Debug log

Logs

This error originated from a custom integration.

Logger: custom_components.mealie
Source: helpers/update_coordinator.py:182
Integration: Mealie (documentation, issues)
First occurred: August 9, 2022 at 10:26:55 PM (611 occurrences)
Last logged: 12:18:03 PM

Error fetching mealie data:

followed by

This error originated from a custom integration.

Logger: custom_components.mealie
Source: custom_components/mealie/__init__.py:111
Integration: Mealie (documentation, issues)
First occurred: 12:06:38 PM (20 occurrences)
Last logged: 12:18:03 PM

0
Traceback (most recent call last):
  File "/config/custom_components/mealie/__init__.py", line 111, in _async_update_data
    data['groups/mealplans/today'][idx]['recipe'].update(
KeyError: 0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.