Difficulty implementing brightness controls - "expected int for dictionary value"

Yeah, I think it’s in the attributes.get(name) code, but I didn’t trace back that far. I was curious (while reading your definition about states(xxx) versus state_attr(xxx)) about what HA was actually doing behind the scenes. I think it calls back to states.py (state_as_number), but it’s been a LONG time since I’ve read that code [edit] (and my Python skills are rusty lol)

1 Like