Skip to content

Commit c343c7d

Browse files
committed
fixed issue when requesting mode
1 parent 7217687 commit c343c7d

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
@@ -74,7 +74,7 @@ def get_fonts(self) -> None:
7474

7575
def get_mode(self) -> Mode:
7676
r = self._get(modeURL)
77-
return Mode(r.text)
77+
return Mode(int(r.text))
7878

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

0 commit comments

Comments
 (0)