home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.72k stars 30.84k forks source link

Missing definition of "epsonprinter_pkg.epsonprinterapi" in components.epsonworkforce #64167

Closed jinpinggou closed 2 years ago

jinpinggou commented 2 years ago

The problem

When I integrated epsonworkforce platform to my HA, error "Platform epsonworkforce not ready yet: None; Retrying in background in 30 seconds" was raised. When I inspect thoroughly, I found the problem might be that missing epsonprinter_pkg.epsonprinterapi module led to unresolved host/api call.

My Epson printer model is EcoTank L3251, which shows the page http:///PRESENTATION/HTML/TOP/PRTINFO.HTML with no problem.

What version of Home Assistant Core has the issue?

core-2021.12.9

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Epsonworkforce

Link to integration documentation on our website

https://github.com/home-assistant/core/blob/dev/homeassistant/components/epsonworkforce/sensor.py

Example YAML snippet

# contained in sensors.yaml file
- platform: epsonworkforce
  host: 192.168.x.xxx
  monitored_conditions:
  - black
  - yellow
  - magenta
  - cyan

Anything in the logs that might be useful for us?

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:268
Integration: Sensor (documentation, issues)
First occurred: January 15, 2022, 8:31:26 PM (1 occurrences)
Last logged: January 15, 2022, 8:31:26 PM

Platform epsonworkforce not ready yet: None; Retrying in background in 30 seconds

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

epsonworkforce documentation epsonworkforce source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @thastealth, mind taking a look at this issue as it has been labeled with an integration (epsonworkforce) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

thecode commented 2 years ago

The epsonprinter_pkg is part of the epsonprinter PyPi package which is set as a requirement here: https://github.com/home-assistant/core/blob/b7785eb1881abdd2d32b87af87b053d2d31e4244/homeassistant/components/epsonworkforce/manifest.json#L6 Why did you reach to a conclusion it is missing? You can type pip show epsonprinter inside the container to validate it is installed correctly.

jinpinggou commented 2 years ago

Thank you for clarifying @thecode . I did search for it but failed to locate the package. my fault. The (epsonprinter, version 0.0.9) epsonprinter_pkg.epsonprinterapi exists. I would close the issue thereafter.

May I ask for help what might have caused my problem of "platform epsonworkforce not ready"? I've re-configured configuration.yaml and restarted homeassistant lots of times. Still, the same error. Need for help. Thank you in advance.

thecode commented 2 years ago

I did not see any options for debug information in this integration so the only option is to wait for the code owner to respond

jinpinggou commented 2 years ago

Thank you @thecode anyway for your help.

Hope @ThaStealth would spot my issue soon.