gcobb321 / icloud3

iCloud3 v3 - iCloud3 is an advanced iDevice tracker that uses Apple iCloud account and HA Companion App data for presence detection and location based automations.
MIT License
546 stars 54 forks source link

ost_event error #286

Closed yargok closed 11 months ago

yargok commented 11 months ago

I am receiving the following error on iCloud3 RC 8:

name 'ost_event' is not defined

When rebooting home assistant, a automation call of the locate function works as intended. On subsequent calls, I receive the error above.

gcobb321 commented 11 months ago

That was fixed on a previous release. See info here to see what release you are really running.

yargok commented 11 months ago

From HACS, I believe I am running RC8 when I have the error:

image
yargok commented 11 months ago

(I appreciate your quick reply)

I tried to redownload the latest version (still looks like above in HACS). When I enter the integration configuration, it appears like i'm running RC6?

image
gcobb321 commented 11 months ago

The first screen is a HACS screen from the HACS database and that is what it thinks it has installed. That has nothing to do with what it’s actually running.

Go back into HACS, select Integration, put iCloud3 in the search bar and select the one you installed. This may be what you did to get the HACS screenshot. Click 3-dots in upper right, select Update Information. Then do the 3-dots again and redownload and restart HA.

yargok commented 11 months ago

Thanks - that is what I tried earlier, and again now. For some reason I still see version rc6.

On Mon, Oct 30, 2023 at 4:12 PM Gary Cobb @.***> wrote:

The first screen is a HACS screen from the HACS database and that is what it thinks it has installed. That has nothing to do with what it’s actually running.

Go back into HACS, select Integration, put iCloud3 in the search bar and select the one you installed. This may be what you did to get the HACS screenshot. Click 3-dots in upper right, select Update Information. Then do the 3-dots again and redownload and restart HA.

— Reply to this email directly, view it on GitHub https://github.com/gcobb321/icloud3/issues/286#issuecomment-1785961948, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFVAVMKKHED6AOCHHNYKELYCAC4RAVCNFSM6AAAAAA6WGW2KOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBVHE3DCOJUHA . You are receiving this because you authored the thread.Message ID: @.***>

gcobb321 commented 11 months ago

HACS, it seems, keeps picking up old releases. I just deleted the rc6 icloud3.zip file and then deleted the rc6 release. Try doing the update user info and re-download again. HACS uses a GitHub comit number. The one for rc8 is a3f30b2.

yargok commented 11 months ago

Yes - I removed it from HACS and my install (verified by going to the config/custom-components directory), followed by a reboot. When I reinstalled icloud3 through HACS, it STILL downloaded the RC6 version. I need up nuking the directory and manually downloading the zip from GitHub. It now works as expected: it shows as RC8 installed AND I no longer get the ost_event error.

I'm closing this issues. @gcobb321 - thanks for your help, but it might be worth checking HACS to make sure the right version is uploaded at RC8.

gcobb321 commented 11 months ago

HA has a code analyzer that runs when a new release is posted to GitHub. iCloud3 would fail the test process because the analyzer said iCloud3 was dependent on the mobile app, which it is not. Adding it as requiring the mobile app would mean it would not load if the mobile app was not installed. When I was putting up rc7, I found that GitHub assigned the rc6 ID number to rc7 so when you installed rc7, you would get rc6 code. When I put up rc8, I removed the HA code analyzer but GitHub still assigned the rc7 ID to it. After several retries and release deletions, a new ID was assigned. Somewhere HACS pickled up the old ID number for you while it has the correct ID for others. I’m hoping it is now cleared up.