Commit graph

339 commits

Author SHA1 Message Date
Martin Weinelt
ae67ae86cc
home-assistant: 2021.5.4 -> 2021.5.5
https://github.com/home-assistant/core/releases/tag/2021.5.5
2021-05-19 18:56:56 +02:00
Martin Weinelt
27cc2b105f
home-assistant: enable tests for components with packaged dependencies 2021-05-18 17:07:32 +02:00
Martin Weinelt
344573771e
home-assistant: pin pylast at 4.2.0
The following test failure occurs with 4.2.1, due to `network` not being
allowed to be None after 6fe9aa632b.

_________________________ test_update_playing[pyloop] __________________________
[gw20] linux -- Python 3.8.9 /nix/store/hq6mrm0pc6xn6j8y6lm4qcgg9rwmqd8q-python3-3.8.9/bin/python3.8

hass = <homeassistant.core.HomeAssistant object at 0x7ffdcba15700>
lastfm_network = <MagicMock name='LastFMNetwork' id='140728019800752'>

    async def test_update_playing(hass, lastfm_network):
        """Test update when song playing."""

        lastfm_network.return_value.get_user.return_value = MockUser(
>           Track("artist", "title", None)
        )

hass       = <homeassistant.core.HomeAssistant object at 0x7ffdcba15700>
lastfm_network = <MagicMock name='LastFMNetwork' id='140728019800752'>

tests/components/lastfm/test_sensor.py:70:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/f0ci60zk59rz5767l9lfy7q767zna6j5-python3.8-pylast-4.2.1/lib/python3.8/site-packages/pylast/__init__.py:2095: in __init__
    super().__init__(artist, title, network, "track", username, info)
        __class__  = <class 'pylast.Track'>
        artist     = 'artist'
        info       = None
        network    = None
        self       = pylast.Track('artist', 'title', None)
        title      = 'title'
        username   = None
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = pylast.Track('artist', 'title', None), artist = 'artist', title = 'title'
network = None, ws_prefix = 'track', username = None, info = {}

    def __init__(self, artist, title, network, ws_prefix, username=None, info=None):
        """
        Create an opus instance.
        # Parameters:
            * artist: An artist name or an Artist object.
            * title: The album or track title.
            * ws_prefix: 'album' or 'track'
        """

        if info is None:
            info = {}

        super().__init__(network=network, ws_prefix=ws_prefix)

        if isinstance(artist, Artist):
            self.artist = artist
        else:
            self.artist = Artist(artist, self.network)

        self.title = title
        self.username = (
>           username if username else network.username
        )  # Default to current user
E       AttributeError: 'NoneType' object has no attribute 'username'

__class__  = <class 'pylast._Opus'>
artist     = 'artist'
info       = {}
network    = None
self       = pylast.Track('artist', 'title', None)
title      = 'title'
username   = None
ws_prefix  = 'track'

/nix/store/f0ci60zk59rz5767l9lfy7q767zna6j5-python3.8-pylast-4.2.1/lib/python3.8/site-packages/pylast/__init__.py:1520: AttributeError
2021-05-18 17:07:30 +02:00
Martin Weinelt
a1a1a6b1df
home-assistant: pin pyopenuv at 1.0.13 2021-05-18 17:06:54 +02:00
Martin Weinelt
f6b1fc2996
home-assistant: pin pyflunearyou at 1.0.7 2021-05-18 16:53:53 +02:00
Martin Weinelt
fda6185f75
Merge pull request #123181 from fabaff/ha-philipsjs 2021-05-17 17:47:19 +02:00
Martin Weinelt
2aa7f70d8e
Merge pull request #123176 from fabaff/ovoenergy 2021-05-17 17:43:52 +02:00
Martin Weinelt
a058bbdec8
Merge pull request #123175 from fabaff/py-canary
python3Packages.py-canary: init 0.5.1
2021-05-17 17:42:58 +02:00
Martin Weinelt
c5f1d219a4
Merge pull request #123151 from fabaff/prayer-times-calculator 2021-05-17 17:36:25 +02:00
Fabian Affolter
f9f076aab0 home-assistant: enable yandex_transport tests 2021-05-17 16:58:51 +02:00
Fabian Affolter
468fda7daa home-assistant: enable islamic_prayer_times tests 2021-05-17 08:22:13 +02:00
Martin Weinelt
22437644f9
home-assistant: disable failing test in mobile app component
____________________ test_webhook_handle_get_config[pyloop] ____________________
[gw18] linux -- Python 3.8.9 /nix/store/q6gfck5czr67090pwm53xrdyhpg6bx67-python3-3.8.9/bin/python3.8

hass = <homeassistant.core.HomeAssistant object at 0x7ffe4e71f370>
create_registrations = ({'cloudhook_url': None, 'remote_ui_url': None, 'secret': 'ed8ac650f2b5865733d2cea4ad1b6b02bcfbdcc3e527524bc1c457d5c6f...emote_ui_url': None, 'secret': None, 'webhook_id': '558fde83113d48024a427ccf004e2d2bdf7c56646c6a5a953566c272d51f1bfc'})
webhook_client = <aiohttp.test_utils.TestClient object at 0x7ffe4e640ca0>

    async def test_webhook_handle_get_config(hass, create_registrations, webhook_client):
        """Test that we can get config properly."""
        resp = await webhook_client.post(
            "/api/webhook/{}".format(create_registrations[1]["webhook_id"]),
            json={"type": "get_config"},
        )

        assert resp.status == 200

        json = await resp.json()
        if "components" in json:
            json["components"] = set(json["components"])
        if "allowlist_external_dirs" in json:
            json["allowlist_external_dirs"] = set(json["allowlist_external_dirs"])

        hass_config = hass.config.as_dict()

        expected_dict = {
            "latitude": hass_config["latitude"],
            "longitude": hass_config["longitude"],
            "elevation": hass_config["elevation"],
            "unit_system": hass_config["unit_system"],
            "location_name": hass_config["location_name"],
            "time_zone": hass_config["time_zone"],
            "components": hass_config["components"],
            "version": hass_config["version"],
            "theme_color": "#03A9F4",  # Default frontend theme color
        }

>       assert expected_dict == json
E       AssertionError: assert {'components'...st home', ...} == {'components'...st home', ...}
E         Omitting 8 identical items, use -vv to show
E         Differing items:
E         {'theme_color': '#03A9F4'} != {'theme_color': 'blue'}
E         Use -v to get the full diff

tests/components/mobile_app/test_webhook.py:231: AssertionError
2021-05-17 03:44:03 +02:00
Fabian Affolter
32aaf7c6f2 home-assistant: enable philips_js tests 2021-05-16 01:58:57 +02:00
Fabian Affolter
9b6fa65134 home-assistant: enable ovo_energy tests 2021-05-16 01:09:42 +02:00
Fabian Affolter
8ddf12114e home-assistant: enable canary tests 2021-05-16 00:53:40 +02:00
Martin Weinelt
bdabf32fdd
home-assistant: print full variables on test error 2021-05-15 16:56:35 +02:00
Martin Weinelt
d4a64aa24f home-assistant: 2021.5.3 -> 2021.5.4 2021-05-15 01:53:39 +02:00
Martin Weinelt
f82a8914a4
home-assistant: enable version component tests 2021-05-14 03:47:01 +02:00
Martin Weinelt
f9d8231892
Merge pull request #122906 from fabaff/bump-pyvesync 2021-05-14 03:41:37 +02:00
Martin Weinelt
f0180dd763
Merge pull request #122419 from fabaff/ha-tests-debugpy 2021-05-14 03:18:53 +02:00
Fabian Affolter
156d2667b5 home-assistant: enable pyvesync tests 2021-05-14 00:07:31 +02:00
Fabian Affolter
ac4b1133ad home-assistant: enable debugpy tests 2021-05-13 23:52:56 +02:00
Martin Weinelt
b7cc0d6d73 home-assistant: 2021.5.2 -> 2021.5.3 2021-05-12 09:14:44 -07:00
Martin Weinelt
81310256a9
home-assistant: 2021.5.1 -> 2021.5.2 2021-05-11 02:02:15 +02:00
Martin Weinelt
008880bd64
Merge pull request #121960 from fabaff/bump-plugwise 2021-05-10 21:27:24 +02:00
Martin Weinelt
cf51b95aea
home-assistant: add jsonpickle to checkInputs
Drop asynctest, it was dropped back in january upstream. These
dependencies are sadly not part of the manifest, that we are parsing.
2021-05-10 21:25:43 +02:00
Fabian Affolter
0f5d490226 home-assistant: enable plugwise tests 2021-05-10 20:53:44 +02:00
Martin Weinelt
94a52465b7
Merge pull request #121856 from fabaff/motioneye-client 2021-05-10 20:48:41 +02:00
Martin Weinelt
0ebdfbd43a
Merge pull request #121853 from fabaff/pymeteireann
python3Packages.pymeteireann: init at 0.2
2021-05-10 20:09:14 +02:00
Martin Weinelt
f1b821a338
Merge pull request #121848 from fabaff/mutesync 2021-05-10 19:54:21 +02:00
Martin Weinelt
4280bbe7e9
Merge pull request #122388 from fabaff/bump-androidtv 2021-05-10 19:23:35 +02:00
Martin Weinelt
b70ae7c278
home-assistant: fix build by disabling test in pyjwt override
FAILED tests/contrib/test_algorithms.py::TestEcdsaAlgorithms::test_ec_verify_should_return_false_if_signature_invalid
2021-05-10 17:50:08 +02:00
Fabian Affolter
4ee3a9c043 home-assistant: enable androidtv tests 2021-05-09 23:01:02 +02:00
Martin Weinelt
f701e8d085
Merge pull request #122028 from fabaff/bump-python-miio 2021-05-08 22:02:21 +02:00
Martin Weinelt
af9d0dde55
Merge pull request #121776 from fabaff/bump-roombapy 2021-05-08 21:49:00 +02:00
Martin Weinelt
96cf2b8582
Merge pull request #121732 from fabaff/bump-surepy 2021-05-08 02:13:46 +02:00
Robert Schütz
bf12c8774d
Merge pull request #121434 from dotlambda/fritzconnection-1.5.0
python3Packages.fritzconnection: 1.4.2 -> 1.5.0
2021-05-07 23:03:47 +02:00
Robin Gloster
5b1c8aefbd
Merge pull request #122054 from mweinelt/home-assistant
home-assistant: 2021.5.0 -> 2021.5.1
2021-05-07 13:02:28 -05:00
Fabian Affolter
c742d23e61 home-assistant: enable surepetcare tests 2021-05-07 20:01:11 +02:00
Martin Weinelt
144dc280e3
Merge pull request #121153 from fabaff/bump-denonavr 2021-05-07 20:00:49 +02:00
Fabian Affolter
fecd9ba4c3
Merge pull request #120266 from fabaff/aiopvpc
python3Packages.aiopvpc: init at 2.0.2
2021-05-07 19:54:47 +02:00
Martin Weinelt
57f2828dca home-assistant: 2021.5.0 -> 2021.5.1 2021-05-07 19:21:45 +02:00
Fabian Affolter
d36f6915ac home-assistant: enable denonavr tests 2021-05-07 18:57:23 +02:00
Martin Weinelt
d4917fafb5
home-assistant: enable fritz component tests
These tests require pytest-mock for the mocker fixture, but it isn't
declared anywhere.

https://github.com/home-assistant/core/issues/50253
2021-05-07 17:22:57 +02:00
Fabian Affolter
501da89713 home-assistant: enable climacell tests 2021-05-07 08:07:55 -07:00
Fabian Affolter
1537fef2ab home-assistant: enable xiaomi_miio tests 2021-05-07 15:16:09 +02:00
Fabian Affolter
724c39fdc7 home-assistant: enable jewish_calendar tests 2021-05-06 23:55:58 +02:00
Fabian Affolter
382a580b18 home-assistant: enable mutesync tests 2021-05-06 21:09:31 +02:00
Fabian Affolter
d79f71927c home-assistant: enable met_eireann tests 2021-05-06 20:11:52 +02:00
Fabian Affolter
c21b689104 home-assistant: enable motioneye tests 2021-05-06 18:56:57 +02:00