Skip to content

Commit b55fcfc

Browse files
committed
fixed issue when requesting mode
1 parent af75798 commit b55fcfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/fluepdot/fluepdot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def get_fonts(self) -> None:
7070

7171
def get_mode(self) -> Mode:
7272
r = self._get(modeURL)
73-
return Mode(r.text)
73+
return Mode(int(r.text))
7474

7575
def post_text(self, text: str, x: int = 0, y: int = 0, font: str = "DejaVuSans12") -> Response:
7676
return self._post(textURL, get={"x": x, "y": y, "font": font}, post=text)

0 commit comments

Comments
 (0)