Skip to content

Commit

Permalink
Update station.py
Browse files Browse the repository at this point in the history
  • Loading branch information
EdLeckert authored Oct 12, 2024
1 parent 6b3fd38 commit 606423c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyopensprinkler/station.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _bit_check(self, bit_property):

async def _bit_set(self, bit_property, bit_update_name, value):
bits = self._controller._state["stations"][bit_property]
_LOGGER.debug(f"Station {self.name}, _bit_set before: {bits}")
_LOGGER.debug(f"Station {self.name}, _bit_set before: {bits}; type={type(bits)}")
bank = math.floor(self._index / 8)
bits = list(reversed([int(x) for x in list("{0:08b}".format(bits[bank]))]))
position = self._index % 8
Expand Down

0 comments on commit 606423c

Please sign in to comment.