roblandry / netgear-enhanced-integration

14 stars 9 forks source link

Use SwitchEntity instead of deprecated SwitchDevice #5

Closed gigz closed 3 years ago

gigz commented 3 years ago

SwitchDevice was renamed to SwitchEntity in home assistant core. It doesn't look like there were any other changes in the class definition. This change updates the integration to use SwitchEntity instead of SwitchDevice. Verified that the warning in the log is gone (https://github.com/roblandry/netgear-enhanced-integration/issues/2) and tested that switches still work - tested with 2g_guest_wifi and 5g_guest_wifi switches.

roblandry commented 3 years ago

As I no longer use this router I do not use this anymore. I cannot test this works.

I will however merge your change.