pkozul / ha-tts-bluetooth-speaker

TTS Bluetooth Speaker for Home Assistant
192 stars 41 forks source link

homeassistant.components.media_player module #2

Open zs85627721 opened 7 years ago

zs85627721 commented 7 years ago

Hi, I'm new to Git. Try to use your Bluetooth tts. looks like I'm the first one having a problem with this project. Seems like I'm unable to import from homeassistant.components.media_player.

Following is the return message from running File "tts_bluetooth_speaker.py", line 6, in from homeassistant.components.media_player import ( ImportError: No module named homeassistant.components.media_player

Dishant-Tawade commented 6 years ago

I have been having the same problem. Did you find a solution?

Dishant-Tawade commented 6 years ago

Could you help @pkozul ?? I have followed all the previous steps and now I am just stuck at the last step.

Do I need to do do something like bluetooth: !include tts_bluetooth_tracker.py ???

Thanks...

BigCabbage commented 5 years ago

Did you place the '\custom_components\' folder actually in the 'config' subfolder? Otherwise HA will not be able to find it.

There are also some other issues, like the file should actually be: 'custom_components\tts_bluetooth_speaker\media_player.py' instead of 'custom_components\media_player\tts_bluetooth_speaker.py'

Some config options are not acknowledged in the setup, so you get warnings in the log, etc. I"m thinking of branching this, but ideally I'd like to fix the issues here..