 
   updateState: (state) ->
     state = "pending" if !state?
-    @elements.led.dataset.state = state
+    setElDataAttr @elements.led, "state", state
 
     if @elements.state?
       text = state

    @reconnect delay
    @reconnectAttempt += 1

    @elements.led.dataset.state = "pending"

    unless @display["hideOnError"]
      @setVisibility "visible"

      @updateIssuePaneText()
      return

    setElDataAttr @elements.paneText, "hidden", true

    for issueId in @visibleIssues
      continue unless issueId of @issues
