In visual studio I build a custom component (sfrtv)
In this component I have 4 files
init.py
media_player.py
manifest.json
remote.py
remote.py contain a class :
class Remote():
"""Object for remote control connection."""
_key_interval = 0.5
def __init__(self, config):
...
media_player.py contain the lines:
def __init__(self, host, port, name, timeout, source_list):
"""Initialize the SFR device."""
# Save a reference to the imported classes
self._exceptions_class = exceptions
self._remote_class = Remote
...
my problem :
I can’t import remote.py in media_player.py
I tried with
- import remote
- from . import remote
without succes, alway message “remote” is not accessed
NB If I copy the content of remote.py in media_player.py, it works