hass-dmx icon indicating copy to clipboard operation
hass-dmx copied to clipboard

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

Open ruth-connect opened this issue 3 years ago • 1 comments

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 avatar Jul 21 '20 21:07 ruth-connect

Fixed this in this pull request - https://github.com/jnimmo/hass-dmx/pull/38

ruth-connect avatar Jul 22 '20 20:07 ruth-connect