I just installed v.91 - for some reason this custom component is no longer overriding the default pushover component. I’ve been running the custom component for almost a year without issue - I had to change the folder structure several releases ago to custom_components/pushover/notify.py and all was working great until now.
Anyone else having this issue? Is there a way to force HA to pickup the custom pushover component?
EDIT
Was able to get this working again in v.91 - not sure if this issue popped up for anyone else in .91 but here’s what I did to fix it:
1.) Modified the custom component directory name /custom_components/pushover/ to /custom_components/pushover_file
2.) added Domain = ‘pushover_file’ after the _Logger line in the notify.py file
3.) Modified my configuration.yaml to reference platform: pushover_file vs platform: pushover
I’m unsure how to follow these instructions… with this pushover_file mention and "notify.py (which one is that?)
This is my actual setup:
in “/custom_components/notify”, I have this:
“pushover.py”
And since latest update, it’s not working (since it uses the same name as built in one I presume)
I think I need to create the structure /custom_components/pushover/notify.py but so not sure how to do this and what to modify… (plus I think I need to rename to something else but unsure where to fix everywhere it could refer to it)…
in this procedure, what is “pushover_file” a folder or the pushover "notify.py file?
edit: ok, I got it…
/custom_components/pushover_custom/notify.py
Edit the platform in notify.yaml to “pushover_custom” instead of “pushover” (based on my choice of folder name)
Not for me. I’ve updated from 0.87 to 0.92, and this is the only thing that doesn’t seem to be working.
I’ve tried various different things from this thread. I’m getting this error:
attachment: invalid message parameter
And I’m seeing this in the startup. Not sure if it’s the issue:
[homeassistant.util.package] Attempting install of python-pushover==0.3
Yeah, that’s what I used. I missed a step though, the manifest.json still had “python-pushover==0.3” in for the requirements
Updated to 0.4 and it’s sorted now
@orson1282 Have you updated the manifest.json to have python-pushover 0.4 in the requirement? When I copied the original over from the HA install it was forcing 0.3 to be installed. Changing that fixed it for me. What version of python-pushover do you have?
Is anyone running .92.1 ? I finally got around to trying to fix this after it broke with .91 a few days ago and I’m getting the following errors in my logs whenever an automation runs that calls the pushover custom component:
2019-04-27 07:35:37 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/script.py", line 131, in async_run
await self._handle_action(action, variables, context)
File "/usr/src/app/homeassistant/helpers/script.py", line 210, in _handle_action
action, variables, context)
File "/usr/src/app/homeassistant/helpers/script.py", line 299, in _async_call_service
context=context
File "/usr/src/app/homeassistant/helpers/service.py", line 89, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context)
File "/usr/src/app/homeassistant/core.py", line 1115, in async_call
raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: (ServiceNotFound(...), 'Service notify.pushover_file not found')
OK Fixed this - needed to create a manifest.json file in the pushover custom component directory: