Skip to content

v0.1.04: fixes to media_player.py

Choose a tag to compare

@heatvent heatvent released this 27 Jul 19:36
· 29 commits to main since this release
415711a

Replace this line:

python
Copy code
udp_comm = UDPCommunication(entry.data["ip_address"], entry.data["port"])
With this:

python
Copy code
udp_comm = UDPCommunication(hass, entry.data["ip_address"], entry.data["port"])
Make sure that the hass object is available in the scope where you're creating the UDPCommunication instance, which it should be since you're inside a Home Assistant setup function. This change should resolve the TypeError and help in creating the devices correctly.