Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. evanbung
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    evanbung

    @evanbung

    0
    Reputation
    1
    Posts
    1
    Profile views
    1
    Followers
    0
    Following
    Joined Last Online

    evanbung Follow

    Best posts made by evanbung

    This user hasn't posted anything yet.

    Latest posts made by evanbung

    • RE: New ethernet gateway errors out on Home Assistant

      During a multiple value assignment, the ValueError: not enough values to unpack occurs when either you have fewer objects to assign than variables, or you have more variables than objects. This error caused by the mismatch between the number of values returned and the number of variables in the assignment statement. This error happened mostly in the case of using python split function. Verify the assignment variables. If the number of assignment variables is greater than the total number of variables, delete the excess variable from the assignment operator. The number of objects returned, as well as the number of variables available are the same.

      To see what line is causing the issue, you could add some debug statements like this:

      if len(line.split()) != "xx":
          print line
      

      This will resolve the value error.

      posted in Home Assistant
      evanbung
      evanbung