albertogeniola / MerossIot

Async Python library for controlling Meross devices
https://albertogeniola.github.io/MerossIot/
MIT License
486 stars 89 forks source link

Error importing MerossEventType #263

Closed mikecy1953 closed 1 year ago

mikecy1953 commented 1 year ago

Trying to import with the following statement from meross_iot.meross.event import MerossEventType

Receive this error: from meross_iot.meross.event import MerossEventType ModuleNotFoundError: No module named 'meross_iot.meross'

I have version 0.4.5 installed. Are there additional add-ons that I need?

albertogeniola commented 1 year ago

Hi! The MerossEventType object was included in library versions 0.3.X.X. Those were old versions, now deprecated. The MerossEventType class has been removed in 0.4.x.x.

What are you trying to achieve by using that class?

mikecy1953 commented 1 year ago

Thanks for the follow up on this. I was attempting to trap errors triggered by device going offline so I could reset. I was able to accomplish this by a try/accept when executing the "data.get('state')". Seems to work as expected.

On 12/13/2022 4:42 PM Alberto Geniola ***@***.***> wrote:

Hi!
The MerossEventType object was included in library versions 0.3.X.X. Those were old versions, now deprecated. The MerossEventType class has been removed in 0.4.x.x.

What are you trying to achieve by using that class?

—
Reply to this email directly, view it on GitHub https://github.com/albertogeniola/MerossIot/issues/263#issuecomment-1350071102 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ANVJUKICYJVHZCIY5M5OEOLWNECX7ANCNFSM6AAAAAASPZZAXM .
You are receiving this because you authored the thread.Message ID: ***@***.***>