Repository: XKNX/xknx
Pull request #539 (2020-12-21 06:57:01)

Bump setuptools from 51.0.0 to 51.1.0.post20201221
Bumps [setuptools](https://github.com/pypa/setuptools) from 51.0.0 to 51.1.0.post20201221.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/pypa/setuptools/blob/main/CHANGES.rst">setuptools's changelog</a>.</em></p>
<blockquote>
<h1>v51.1.0</h1>
<h2>Changes</h2>
<ul>
<li><a href="https://github-redirect.dependabot.com/pypa/setuptools/issues/2486">#2486</a>: Project adopts jaraco/skeleton for shared package maintenance.</li>
</ul>
<h2>Misc</h2>
<ul>
<li><a href="https://github-redirect.dependabot.com/pypa/setuptools/issues/2477">#2477</a>: Restore inclusion of rst files in sdist.</li>
<li><a href="https://github-redirect.dependabot.com/pypa/setuptools/issues/2484">#2484</a>: Setuptools has replaced the master branch with the main branch.</li>
<li><a href="https://github-redirect.dependabot.com/pypa/setuptools/issues/2485">#2485</a>: Fixed failing test when pip 20.3+ is present. -- by yan12125</li>
<li><a href="https://github-redirect.dependabot.com/pypa/setuptools/issues/2487">#2487</a>: Fix tests with pytest 6.2 -- by yan12125</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/pypa/setuptools/commits">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=setuptools&package-manager=pip&previous-version=51.0.0&new-version=51.1.0.post20201221)](https://dependabot.com/compatibility-score/?dependency-name=setuptools&package-manager=pip&previous-version=51.0.0&new-version=51.1.0.post20201221)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)



</details>

coveralls: 
[![Coverage Status](https://coveralls.io/builds/35855419/badge)](https://coveralls.io/builds/35855419)

Coverage remained the same at 94.772% when pulling **e29d5e74b39a3780fbab9370564d5760d6043247 on dependabot/pip/setuptools-51.1.0.post20201221** into **30720c78a10cd84a80dc31df1f74510b042df376 on master**.


Patch:
diff --git a/xknx/config/config_v1.py b/xknx/config/config_v1.py
index be3f36bb..02b9dfd2 100644
--- a/xknx/config/config_v1.py
+++ b/xknx/config/config_v1.py
@@ -23,6 +23,7 @@ from xknx.devices import (
 )
 from xknx.exceptions import XKNXException
 from xknx.io import ConnectionConfig, ConnectionType
+from xknx.telegram import IndividualAddress
 
 logger = logging.getLogger("xknx.log")
 
@@ -51,7 +52,7 @@ class ConfigV1:
         """Parse the general section of xknx.yaml."""
         if "general" in doc:
             if "own_address" in doc["general"]:
-                self.xknx.own_address = doc["general"]["own_address"]
+                self.xknx.own_address = IndividualAddress(doc["general"]["own_address"])
             if "rate_limit" in doc["general"]:
                 self.xknx.rate_limit = doc["general"]["rate_limit"]
             if "multicast_group" in doc["general"]:


Test patch:
diff --git a/requirements/testing.txt b/requirements/testing.txt
index 1f27f36b..5fc7de8a 100644
--- a/requirements/testing.txt
+++ b/requirements/testing.txt
@@ -10,6 +10,6 @@ pylint-strict-informational==0.1
 pytest==6.2.1
 pytest-cov==2.10.1
 pytest-timeout==1.4.2
-setuptools==51.0.0
+setuptools==51.1.0.post20201221
 tox==3.20.1
 mypy==0.790
diff --git a/test/config_tests/config_v1_test.py b/test/config_tests/config_v1_test.py
index 5479f439..7d0d70d3 100644
--- a/test/config_tests/config_v1_test.py
+++ b/test/config_tests/config_v1_test.py
@@ -23,6 +23,7 @@ from xknx.devices import (
 )
 from xknx.exceptions import XKNXException
 from xknx.io import ConnectionConfig, ConnectionType
+from xknx.telegram import IndividualAddress
 import yaml
 
 
@@ -54,7 +55,7 @@ class TestConfig(unittest.TestCase):
     #
     def test_config_general(self):
         """Test reading general section from config file."""
-        self.assertEqual(TestConfig.xknx.own_address, "15.15.249")
+        self.assertEqual(TestConfig.xknx.own_address, IndividualAddress("15.15.249"))
         self.assertEqual(TestConfig.xknx.rate_limit, 18)
         self.assertEqual(TestConfig.xknx.multicast_group, "224.1.2.3")
         self.assertEqual(TestConfig.xknx.multicast_port, 1337)