From 4eda2d24d1228d59d25902f06b767c16180a17e5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Sep 2026 23:21:23 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.22 → v0.16.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.22...v0.16.9) - [github.com/rbubley/mirrors-prettier: v3.9.5 → v3.9.9](https://github.com/rbubley/mirrors-prettier/compare/v3.9.5...v3.9.9) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 03e3cf2..ab820f1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.22 + rev: v0.16.9 hooks: - id: ruff-check args: @@ -36,6 +36,6 @@ repos: hooks: - id: yamllint - repo: https://github.com/rbubley/mirrors-prettier - rev: v3.9.5 + rev: v3.9.9 hooks: - id: prettier From 8e2640a5123ed4babc8f5aa600715a0282305470 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Sep 2026 23:21:34 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index a02c3ff..97ff09f 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ python3 -m pyisy http://your-isy-url:port username password import asyncio from pyisy import ISY + async def main(): # Connect to ISY controller isy = ISY("192.168.1.10", 80, "admin", "password") @@ -52,6 +53,7 @@ async def main(): # Shutdown the connection await isy.shutdown() + if __name__ == "__main__": asyncio.run(main()) ```