Samsung Smart TV Integration not working

Tags: #<Tag:0x00007f326f2868a8>

Hi! I am trying to set up samsungtv integration in config with turn_on_action, but I get “Error while setting up samsungtv platform for media_player”.

When I remove turn_on_action seems to work.

Config

wake_on_lan:

samsungtv:
  host: xxx.xxx.xxx.xxx
  name: TV
  turn_on_action:
    service: wake_on_lan.send_magic_packet
    data:
      mac: 'AA:BB:CC:DD:EE:FF'
      broadcast_address: xxx.xxx.xxx.xxx
      broadcast_port: 9

Logs / traceback

Logger: homeassistant.components.media_player
Source: util/__init__.py:47
Integration: Odtwarzacz mediów (documentation, issues)
First occurred: 17:09:38 (1 occurrences)
Last logged: 17:09:38

Error while setting up samsungtv platform for media_player
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 199, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/samsungtv/media_player.py", line 73, in async_setup_entry
    on_script = Script(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 818, in __init__
    self._set_logger(logger)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 858, in _set_logger
    self._logger = logging.getLogger(f"{__name__}.{slugify(self.name)}")
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 47, in slugify
    return unicode_slug.slugify(text, separator=separator)
  File "/usr/local/lib/python3.8/site-packages/slugify/slugify.py", line 104, in slugify
    text = _unicode(text, 'utf-8', 'ignore')
TypeError: decoding to str: need a bytes-like object, NoneType found