Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

TypeError: 'float' object cannot be interpreted as an integer #37

Open
ruth-connect opened this issue Jul 21, 2020 · 1 comment
Open

Comments

@ruth-connect
Copy link

ruth-connect commented Jul 21, 2020

Hi, I'm getting an error when using this plugin with the latest version of hassio:

2020-07-21 22:48:24 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/dmx/light.py", line 538, in set_channels_async
    self.send()
  File "/config/custom_components/dmx/light.py", line 493, in send
    packet.extend(self._channels)
TypeError: 'float' object cannot be interpreted as an integer

My configuration is as follows:

light:
  - platform: dmx
    host: 192.168.1.114
    default_level: 0
    default_type: rgbwd
    send_levels_on_startup: false
    devices:
      - channel: 1
        name: Mega Tripar 1
        default_rgb: [255, 255, 255]
      - channel: 11
        name: Mega Tripar 2
        default_rgb: [255, 255, 255]
      - channel: 21
        name: Mega Tripar 3
        default_rgb: [255, 255, 255]
      - channel: 31
        name: Mega Tripar 4
        default_rgb: [255, 255, 255]

Do you have any idea why this might be please?

@ruth-connect
Copy link
Author

Fixed this in this pull request - #38

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant