Skip to content

Commit

Permalink
Update switch.py
Browse files Browse the repository at this point in the history
  • Loading branch information
opq8 committed Oct 13, 2023
1 parent 11a2bc6 commit 2e0e106
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/phyn/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ async def async_setup_entry(
]["devices"]
entities = []
for device in devices:
entities.append(PhynSwitch(device))
if device.model == 'PP1' or device.model == 'PP2':
entities.append(PhynSwitch(device))
async_add_entities(entities)


Expand Down

0 comments on commit 2e0e106

Please sign in to comment.