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

      @updateIssuePaneText()
      return

    @elements.paneText.dataset.hidden = true

    for issueId in @visibleIssues
      continue unless issueId of @issues

    @reconnect delay
    @reconnectAttempt += 1

    setElDataAttr @elements.led "state", "pending"

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