ha-wyzeapi icon indicating copy to clipboard operation
ha-wyzeapi copied to clipboard

[Bug] unable to update login credentials without removing entire integration

Open teddy-ptmedia opened this issue 1 year ago • 10 comments

I need to update the password for the integration to connect again. where can i do this without being forced to remove and re add the entire integration.

teddy-ptmedia avatar May 16 '24 01:05 teddy-ptmedia

I don’t think that’s possible, you’ll have to remove and re-add.

brg468 avatar May 16 '24 04:05 brg468

Is it possible to edit the integration somewhere in a file system? On May 15, 2024, at 6:09 PM, Brian Rogers @.***> wrote: I don’t think that’s possible, you’ll have to remove and re-add.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

teddy-ptmedia avatar May 16 '24 04:05 teddy-ptmedia

Possibly in .storage. It’s really not a big deal to re add the integration though.

brg468 avatar May 16 '24 04:05 brg468

I was looking I. Storage and can’t fine a wayze integrated reference. I have custom entities I’d have to set up again. On May 15, 2024, at 6:30 PM, Brian Rogers @.***> wrote: Possibly in .storage. It’s really not a big deal to re add the integration though.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

teddy-ptmedia avatar May 16 '24 04:05 teddy-ptmedia

Try

/homeassistant/.storage/core.config_entries

brg468 avatar May 16 '24 04:05 brg468

/homeassistant/.storage/core.config_entries

Try setting data to an empty object in the config entry for the wyzeapi domain in the above file. That should trigger the config flow which for this plugin will re-prompt for credentials and API key, which are then used here.

KAndersonUS avatar May 20 '24 15:05 KAndersonUS

That is easy to do but how do I get the file to be unlocked for editing while HA is running? If I shut down HA I cant access the file to edit it.

On May 20, 2024, at 5:19 AM, Kyle Anderson @.***> wrote:

/homeassistant/.storage/core.config_entries

Try setting data to an empty object in the config entry for the wyzeapi domain in the above file. That should trigger the config flow https://developers.home-assistant.io/docs/config_entries_config_flow_handler/ which for this plugin will re-prompt for credentials and API key, which are then used here https://github.com/SecKatie/ha-wyzeapi/blob/master/custom_components/wyzeapi/__init__.py#L85.

— Reply to this email directly, view it on GitHub https://github.com/SecKatie/ha-wyzeapi/issues/584#issuecomment-2120674238, or unsubscribe https://github.com/notifications/unsubscribe-auth/APYXFP267HQDFZ7JFJU54H3ZDIIBRAVCNFSM6AAAAABHZG2HTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRQGY3TIMRTHA. You are receiving this because you authored the thread.

teddy-ptmedia avatar May 21 '24 07:05 teddy-ptmedia

I just tried it with the file editor addon and it saved with no issues with HA running. I didn’t go through with a restart cause I don’t wanna go through re auth but it seems like it saved just fine. The file shows updated.

brg468 avatar May 21 '24 14:05 brg468

I did the same thing as you just now but it shows updated and then a moment later all the old data comes right back.

On May 21, 2024, at 4:09 AM, Brian Rogers @.***> wrote:

I just tried it with the file editor addon and it saved with no issues with HA running. I didn’t go through with a restart cause I don’t wanna go through re auth but it seems like it saved just fine. The file shows updated.

— Reply to this email directly, view it on GitHub https://github.com/SecKatie/ha-wyzeapi/issues/584#issuecomment-2122726610, or unsubscribe https://github.com/notifications/unsubscribe-auth/APYXFP6H2JMZ64GCM5VW5ZDZDNIP7AVCNFSM6AAAAABHZG2HTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRSG4ZDMNRRGA. You are receiving this because you authored the thread.

teddy-ptmedia avatar May 21 '24 23:05 teddy-ptmedia

Is this a bug or a feature request?

SecKatie avatar Jun 20 '24 23:06 SecKatie

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jul 21 '24 01:07 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Jul 26 '24 02:07 github-actions[bot]